BatchApplicationTokenCredentials Class

  • java.lang.Object
    • TokenCredentials
      • com.microsoft.azure.batch.auth.BatchApplicationTokenCredentials

public class BatchApplicationTokenCredentials implements BatchCredentials

Application token based credentials for use with a Batch Service Client.

Constructor Summary

Constructor Description
BatchApplicationTokenCredentials(String baseUrl, String clientId, String secret, String domain, String batchEndpoint, String authenticationEndpoint)

Initializes a new instance of the BatchApplicationTokenCredentials.

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)

Constructor Details

BatchApplicationTokenCredentials

public BatchApplicationTokenCredentials(String baseUrl, String clientId, String secret, String domain, String batchEndpoint, String authenticationEndpoint)

Initializes a new instance of the BatchApplicationTokenCredentials.

Parameters:

baseUrl - the Batch service endpoint.
clientId - the Active Directory application client id.
secret - the authentication secret for the application.
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 Details

authenticationEndpoint

public String authenticationEndpoint()

Gets the Active Directory auth endpoint.

Returns:

the Active Directory auth endpoint.

baseUrl

public String baseUrl()

Gets the Batch service endpoint

Overrides:

BatchApplicationTokenCredentials.baseUrl()

Returns:

The Batch service endpoint

batchEndpoint

public String batchEndpoint()

Gets the Batch service auth endpoint.

Returns:

the Batch service auth endpoint.

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.

getToken

public String getToken(Request request)

Parameters:

request

Applies to