AuthenticationResultMetadata Class
- java.
lang. Object - com.
microsoft. aad. msal4j. AuthenticationResultMetadata
- com.
Implements
public class AuthenticationResultMetadata
implements java.io.Serializable
Contains metadata and additional context for the contents of an AuthenticationResult
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Authentication |
builder() |
Cache |
cacheRefreshReason()
Specifies the reason for refreshing the access token, see CacheRefreshReason for possible values. |
java.lang.Long |
refreshOn()
When the token should be proactively refreshed. |
Token |
tokenSource()
The source of the tokens in the AuthenticationResult, see TokenSource for possible values |
Methods inherited from java.lang.Object
Method Details
builder
public static AuthenticationResultMetadata.AuthenticationResultMetadataBuilder builder()
cacheRefreshReason
public CacheRefreshReason cacheRefreshReason()
Specifies the reason for refreshing the access token, see CacheRefreshReason for possible values. Will be NOT_APPLICABLE if the token was returned from the cache or if the API used to fetch the token does not attempt to read the cache.
refreshOn
public Long refreshOn()
When the token should be proactively refreshed. May be null or 0 if proactive refresh is not used
tokenSource
public TokenSource tokenSource()
The source of the tokens in the AuthenticationResult, see TokenSource for possible values