AuthenticationResultMetadata Class

  • java.lang.Object
    • com.microsoft.aad.msal4j.AuthenticationResultMetadata

Implements

java.io.Serializable

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 AuthenticationResultMetadataBuilder builder()
CacheRefreshReason 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.

TokenSource tokenSource()

The source of the tokens in the AuthenticationResult, see TokenSource for possible values

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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

Applies to