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)
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(@NonNull 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:
Returns:
this
.authorityUrl
public SilentParameters.SilentParametersBuilder authorityUrl(String authorityUrl)
Authority for which the application is requesting tokens from.
Parameters:
Returns:
this
.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:
Returns:
this
.extraHttpHeaders
public SilentParameters.SilentParametersBuilder extraHttpHeaders(Map
Adds additional headers to the token request
Parameters:
Returns:
this
.extraQueryParameters
public SilentParameters.SilentParametersBuilder extraQueryParameters(Map
Adds additional query parameters to the token request
Parameters:
Returns:
this
.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:
Returns:
this
.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(@NonNull Set
Scopes application is requesting access to.
Parameters:
Returns:
this
.tenant
public SilentParameters.SilentParametersBuilder tenant(String tenant)
Overrides the tenant value in the authority URL for this request
Parameters:
Returns:
this
.toString
public String toString()
Overrides:
SilentParameters.SilentParametersBuilder.toString()