public class SilentParameters extends Object
AbstractClientApplicationBase.acquireTokenSilently(SilentParameters)
or to
AbstractClientApplicationBase.acquireTokenSilently(SilentParameters)
Modifier and Type | Class and Description |
---|---|
static class |
SilentParameters.SilentParametersBuilder |
Modifier and Type | Method and Description |
---|---|
IAccount |
account()
Account for which you are requesting a token for.
|
String |
authorityUrl()
Authority for which the application is requesting tokens from.
|
static SilentParameters.SilentParametersBuilder |
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 acquireTokenSilently. This overload will be removed in the next major version.
|
static SilentParameters.SilentParametersBuilder |
builder(Set<String> scopes,
IAccount account)
Builder for SilentParameters
|
ClaimsRequest |
claims()
Claims to be requested through the OIDC claims request parameter, allowing requests for standard and custom claims.
|
Map<String,String> |
extraHttpHeaders()
Adds additional headers to the token request
|
boolean |
forceRefresh()
Force MSAL to refresh the tokens in the cache, even if there is a valid access token.
|
@NonNull Set<String> |
scopes()
Scopes application is requesting access to.
|
public static SilentParameters.SilentParametersBuilder builder(Set<String> scopes, IAccount account)
scopes
- scopes application is requesting access toaccount
- IAccount
for which to acquire a token for@Deprecated public static SilentParameters.SilentParametersBuilder builder(Set<String> scopes)
scopes
- scopes application is requesting access topublic IAccount account()
public ClaimsRequest claims()
public String authorityUrl()
public boolean forceRefresh()
Copyright © 2013–2021. All rights reserved.