ClientCredentialParameters Class
- java.
lang. Object - com.
microsoft. aad. msal4j. ClientCredentialParameters
- com.
Implements
public class ClientCredentialParameters
implements com.microsoft.aad.msal4j.IAcquireTokenParameters
Object containing parameters for client credential flow. Can be used as parameter to acquireToken(ClientCredentialParameters parameters)
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Client |
builder(Set<String> scopes)
Builder for ClientCredentialParameters |
Claims |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims |
IClient |
clientCredential()
Overrides the client credentials for this request |
java.util.Map<java.lang.String,java.lang.String> |
extraHttpHeaders()
Adds additional headers to the token request |
java.util.Map<java.lang.String,java.lang.String> |
extraQueryParameters()
Adds additional query parameters to the token request |
@lombok.NonNull java.util.Set<java.lang.String> |
scopes()
Scopes for which the application is requesting access to. |
java.lang.Boolean |
skipCache()
Indicates whether the request should skip looking into the token cache. |
java.lang.String |
tenant()
Overrides the tenant value in the authority URL for this request |
Methods inherited from java.lang.Object
Method Details
builder
public static ClientCredentialParameters.ClientCredentialParametersBuilder builder(Set
Builder for ClientCredentialParameters
Parameters:
Returns:
claims
public ClaimsRequest claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims
clientCredential
public IClientCredential clientCredential()
Overrides the client credentials for this request
extraHttpHeaders
public Map
Adds additional headers to the token request
extraQueryParameters
public Map
Adds additional query parameters to the token request
scopes
public @NonNull Set
Scopes for which the application is requesting access to.
skipCache
public Boolean skipCache()
Indicates whether the request should skip looking into the token cache. Be default it is set to false.
tenant
public String tenant()
Overrides the tenant value in the authority URL for this request