public class BatchApplicationTokenCredentials extends TokenCredentials implements BatchCredentials
| Constructor and Description |
|---|
BatchApplicationTokenCredentials(String baseUrl,
String clientId,
String secret,
String domain,
String batchEndpoint,
String authenticationEndpoint)
Initializes a new instance of the BatchApplicationTokenCredentials.
|
| 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(okhttp3.Request request)
Get the secure token.
|
applyCredentialsFilter, getSchemeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyCredentialsFilterpublic BatchApplicationTokenCredentials(String baseUrl, String clientId, String secret, String domain, String batchEndpoint, String authenticationEndpoint)
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.public String clientId()
public String domain()
public String authenticationEndpoint()
public String batchEndpoint()
public String baseUrl()
baseUrl in interface BatchCredentialspublic String getToken(okhttp3.Request request) throws IOException
TokenCredentialsgetToken in class TokenCredentialsrequest - the context of the HTTP requestIOException - exception thrown from token acquisition operations.Copyright © 2019. All rights reserved.