SilentParameters Class
- java.
lang. Object - com.
microsoft. aad. msal4j. SilentParameters
- com.
Implements
public class SilentParameters
implements com.microsoft.aad.msal4j.IAcquireTokenParameters
Object containing parameters for silent requests. Can be used as parameter to acquireTokenSilently(SilentParameters parameters) or to ConfidentialClientApplication#acquireTokenSilently(SilentParameters)
Method Summary
Modifier and Type | Method and Description |
---|---|
IAccount |
account()
Account for which you are requesting a token for. |
java.lang.String |
authorityUrl()
Authority for which the application is requesting tokens from. |
static
Silent |
builder(Set<String> scopes)
Deprecated
This method was used for using cached tokens in client credentials or On-behalf-of flow. Those flows will now by default attempt to use cached the cached tokens, so there is no need to call acquire
Builder for Silent |
static
Silent |
builder(Set<String> scopes, IAccount account)
Builder for Silent |
Claims |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims. |
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 |
boolean |
forceRefresh()
Force MSAL to refresh the tokens in the cache, even if there is a valid access token. |
Pop |
proofOfPossession() |
@lombok.NonNull java.util.Set<java.lang.String> |
scopes()
Scopes application is requesting access to. |
java.lang.String |
tenant()
Overrides the tenant value in the authority URL for this request |
Methods inherited from java.lang.Object
Method Details
account
public IAccount account()
Account for which you are requesting a token for.
authorityUrl
public String authorityUrl()
Authority for which the application is requesting tokens from.
builder
public static SilentParameters.SilentParametersBuilder builder(Set<String> scopes)
Deprecated
Builder for SilentParameters
Parameters:
Returns:
builder
public static SilentParameters.SilentParametersBuilder builder(Set<String> scopes, IAccount account)
Builder for SilentParameters
Parameters:
Returns:
claims
public ClaimsRequest claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims.
extraHttpHeaders
public Map<String,String> extraHttpHeaders()
Adds additional headers to the token request
extraQueryParameters
public Map<String,String> extraQueryParameters()
Adds additional query parameters to the token request
forceRefresh
public boolean forceRefresh()
Force MSAL to refresh the tokens in the cache, even if there is a valid access token.
proofOfPossession
public PopParameters proofOfPossession()
scopes
public @NonNull Set<String> scopes()
Scopes application is requesting access to.
tenant
public String tenant()
Overrides the tenant value in the authority URL for this request