Package com.microsoft.azure.batch.auth
Class BatchUserTokenCredentials
- java.lang.Object
-
- com.microsoft.rest.credentials.TokenCredentials
-
- com.microsoft.azure.batch.auth.BatchUserTokenCredentials
-
- All Implemented Interfaces:
BatchCredentials
,com.microsoft.rest.credentials.ServiceClientCredentials
public class BatchUserTokenCredentials extends com.microsoft.rest.credentials.TokenCredentials implements BatchCredentials
User token based credentials for use with a Batch Service Client.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
authenticationEndpoint()
Gets the Active Directory auth endpoint.String
baseUrl()
Gets the Batch service endpointString
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(okhttp3.Request request)
String
username()
Gets the user name for the Organization Id account.-
Methods inherited from class com.microsoft.rest.credentials.TokenCredentials
applyCredentialsFilter, getScheme
-
-
-
-
Constructor Detail
-
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:
baseUrl
- the Batch service endpoint.clientId
- the Active Directory application client id.username
- the user name for the Organization Id account.password
- the password for the Organization Id account.domain
- the domain or tenant id containing this application.batchEndpoint
- the Batch service endpoint to authenticate with.authenticationEndpoint
- the Active Directory endpoint to authenticate with.
-
-
Method Detail
-
clientId
public String clientId()
Gets the Active Directory application client id.- Returns:
- the active directory application client id.
-
domain
public String domain()
Gets the tenant or domain containing the application.- Returns:
- the tenant or domain containing the application.
-
username
public String username()
Gets the user name for the Organization Id account.- Returns:
- the user name.
-
authenticationEndpoint
public String authenticationEndpoint()
Gets the Active Directory auth endpoint.- Returns:
- the Active Directory auth endpoint.
-
batchEndpoint
public String batchEndpoint()
Gets the Batch service auth endpoint.- Returns:
- the Batch service auth endpoint.
-
baseUrl
public String baseUrl()
Gets the Batch service endpoint- Specified by:
baseUrl
in interfaceBatchCredentials
- Returns:
- The Batch service endpoint
-
getToken
public String getToken(okhttp3.Request request) throws IOException
- Overrides:
getToken
in classcom.microsoft.rest.credentials.TokenCredentials
- Throws:
IOException
-
-