BatchUserTokenCredentials Class
- java.
lang. Object - TokenCredentials
- com.
microsoft. azure. batch. auth. BatchUserTokenCredentials
- com.
public class BatchUserTokenCredentials implements BatchCredentials
User token based credentials for use with a Batch Service Client.
Constructor Summary
Constructor | Description |
---|---|
BatchUserTokenCredentials(String baseUrl, String clientId, String username, String password, String domain, String batchEndpoint, String authenticationEndpoint) |
Initializes a new instance of the BatchUserTokenCredentials. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
authenticationEndpoint()
Gets the Active Directory auth endpoint. |
String |
baseUrl()
Gets the Batch service endpoint |
String |
batchEndpoint()
Gets the Batch service auth endpoint. |
String |
clientId()
Gets the Active Directory application client id. |
String |
domain()
Gets the tenant or domain containing the application. |
String | getToken(Request request) |
String |
username()
Gets the user name for the Organization Id account. |
Constructor Details
BatchUserTokenCredentials
public BatchUserTokenCredentials(String baseUrl, String clientId, String username, String password, String domain, String batchEndpoint, String authenticationEndpoint)
Initializes a new instance of the BatchUserTokenCredentials.
Parameters:
Method Details
authenticationEndpoint
public String authenticationEndpoint()
Gets the Active Directory auth endpoint.
Returns:
baseUrl
public String baseUrl()
Gets the Batch service endpoint
Overrides:
BatchUserTokenCredentials.baseUrl()Returns:
batchEndpoint
public String batchEndpoint()
Gets the Batch service auth endpoint.
Returns:
clientId
public String clientId()
Gets the Active Directory application client id.
Returns:
domain
public String domain()
Gets the tenant or domain containing the application.
Returns:
getToken
public String getToken(Request request)
Parameters:
username
public String username()
Gets the user name for the Organization Id account.
Returns: