SilentParameters.SilentParametersBuilder Class
- java.
lang. Object - com.
microsoft. aad. msal4j. SilentParameters. SilentParametersBuilder
- com.
public static class SilentParameters.SilentParametersBuilder
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Silent |
account(IAccount account)
Account for which you are requesting a token for. |
|
Silent |
authorityUrl(String authorityUrl)
Authority for which the application is requesting tokens from. |
|
Silent |
build() |
|
Silent |
claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims. |
|
Silent |
extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request |
|
Silent |
extraQueryParameters(Map<String,String> extraQueryParameters)
Deprecated
Not recommended for production scenarios. It will be removed in a future release, and the behavior may be replaced by a new API.
Adds additional query parameters to the token request |
|
Silent |
forceRefresh(boolean forceRefresh)
Force MSAL to refresh the tokens in the cache, even if there is a valid access token. |
|
Silent |
proofOfPossession(HttpMethod httpMethod, URI uri, String nonce)
Sets the Pop |
|
Silent |
scopes(Set<String> scopes)
Scopes application is requesting access to. |
|
Silent |
tenant(String tenant)
Overrides the tenant value in the authority URL for this request |
| java.lang.String | toString() |
Methods inherited from java.lang.Object
Method Details
account
public SilentParameters.SilentParametersBuilder account(IAccount account)
Account for which you are requesting a token for.
Parameters:
authorityUrl
public SilentParameters.SilentParametersBuilder authorityUrl(String authorityUrl)
Authority for which the application is requesting tokens from.
Parameters:
build
public SilentParameters build()
claims
public SilentParameters.SilentParametersBuilder claims(ClaimsRequest claims)
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims.
Parameters:
extraHttpHeaders
public SilentParameters.SilentParametersBuilder extraHttpHeaders(Map<String,String> extraHttpHeaders)
Adds additional headers to the token request
Parameters:
extraQueryParameters
public SilentParameters.SilentParametersBuilder extraQueryParameters(Map<String,String> extraQueryParameters)
Deprecated
Adds additional query parameters to the token request
Parameters:
forceRefresh
public SilentParameters.SilentParametersBuilder forceRefresh(boolean forceRefresh)
Force MSAL to refresh the tokens in the cache, even if there is a valid access token.
Parameters:
proofOfPossession
public SilentParameters.SilentParametersBuilder proofOfPossession(HttpMethod httpMethod, URI uri, String nonce)
Sets the PopParameters for this request, allowing the request to retrieve proof-of-possession tokens rather than bearer tokens
For more information, see PopParameters and https://aka.ms/msal4j-pop
Parameters:
scopes
public SilentParameters.SilentParametersBuilder scopes(Set<String> scopes)
Scopes application is requesting access to.
Cannot be null.
Parameters:
tenant
public SilentParameters.SilentParametersBuilder tenant(String tenant)
Overrides the tenant value in the authority URL for this request
Parameters:
toString
public String toString()
Overrides:
SilentParameters.SilentParametersBuilder.toString()