public class SilentParameters extends Object
PublicClientApplication.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() |
String |
authorityUrl() |
static SilentParameters.SilentParametersBuilder |
builder(Set<String> scopes)
Builder for SilentParameters for scenarios which involve no
IAccount, such as some confidential client flows
or broker flows which support using the default OS account. |
static SilentParameters.SilentParametersBuilder |
builder(Set<String> scopes,
IAccount account)
Builder for SilentParameters
|
ClaimsRequest |
claims()
Gets the claims request parameter that will be sent with the authentication request.
|
Map<String,String> |
extraHttpHeaders()
Gets additional HTTP headers to be included in the token request.
|
Map<String,String> |
extraQueryParameters()
Gets additional query parameters to be included in the token request.
|
boolean |
forceRefresh() |
PopParameters |
proofOfPossession() |
Set<String> |
scopes()
Gets the set of scopes (permissions) requested for the access token.
|
String |
tenant()
Gets the tenant identifier for the token request.
|
public static SilentParameters.SilentParametersBuilder builder(Set<String> scopes, IAccount account)
scopes - scopes application is requesting access toaccount - IAccount for which to acquire a token forpublic static SilentParameters.SilentParametersBuilder builder(Set<String> scopes)
IAccount, such as some confidential client flows
or broker flows which support using the default OS account.scopes - scopes application is requesting access topublic Set<String> scopes()
Scopes represent the permissions that the application is requesting access to.
public IAccount account()
public ClaimsRequest claims()
The claims request parameter can be used to request specific claims to be returned in the token, to request MFA authentication, or to control other aspects of token issuance.
ClaimsRequest object containing the requested claims, or null if no claims are specified.public String authorityUrl()
public boolean forceRefresh()
public Map<String,String> extraHttpHeaders()
These headers will be added to the HTTP requests sent to the token endpoint. This can be useful for scenarios requiring custom headers for proxies or for diagnostic purposes.
public Map<String,String> extraQueryParameters()
These parameters will be added to the query string in requests to the authorization and token endpoints. This can be useful for scenarios requiring custom parameters that aren't explicitly supported in the library.
public String tenant()
When specified, this value overrides the tenant specified in the application's authority URL. It can be a tenant ID (GUID), domain name, or one of the special values like "common" or "organizations".
public PopParameters proofOfPossession()
Copyright © 2013–2025. All rights reserved.