TokenProvider.createAzureActiveDirectoryTokenProvider 方法
定义
重载
createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String clientSecret) |
Creates an Azure Active Directory token provider that acquires a token from the given active directory instance using the given clientId and client secret. This is a utility method. |
createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String userName, String password) |
Creates an Azure Active Directory token provider that acquires a token from the given active directory instance using the given clientId, username and password. This is a utility method. |
createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String clientSecret)
Creates an Azure Active Directory token provider that acquires a token from the given active directory instance using the given clientId and client secret. This is a utility method.
public static TokenProvider createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String clientSecret)
参数
- authorityUrl
- String
URL of the Azure Active Directory instance
- clientId
- String
client id of the application
- clientSecret
- String
client secret of the application
返回
an instance of Azure Active Directory token provider
例外
if the authority URL is not well formed
createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String userName, String password)
Creates an Azure Active Directory token provider that acquires a token from the given active directory instance using the given clientId, username and password. This is a utility method.
public static TokenProvider createAzureActiveDirectoryTokenProvider(String authorityUrl, String clientId, String userName, String password)
参数
- authorityUrl
- String
URL of the Azure Active Directory instance
- clientId
- String
client id of the application
- userName
- String
user name
- password
- String
password
返回
an instance of Azure Active Directory token provider
例外
if the authority URL is not well formed