Leer en inglés

Compartir a través de


AuthenticationResultMetadata.AuthenticationResultMetadataBuilder Class

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

public static class AuthenticationResultMetadata.AuthenticationResultMetadataBuilder

Method Summary

Modifier and Type Method and Description
AuthenticationResultMetadata build()
AuthenticationResultMetadataBuilder cacheRefreshReason(CacheRefreshReason cacheRefreshReason)

Specifies the reason for refreshing the access token, see CacheRefreshReason for possible values.

AuthenticationResultMetadataBuilder refreshOn(Long refreshOn)

When the token should be proactively refreshed.

AuthenticationResultMetadataBuilder tokenSource(TokenSource tokenSource)

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

java.lang.String toString()

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

build

public AuthenticationResultMetadata build()

cacheRefreshReason

public AuthenticationResultMetadata.AuthenticationResultMetadataBuilder cacheRefreshReason(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.

Parameters:

cacheRefreshReason

Returns:

this.

refreshOn

public AuthenticationResultMetadata.AuthenticationResultMetadataBuilder refreshOn(Long refreshOn)

When the token should be proactively refreshed. May be null or 0 if proactive refresh is not used

Parameters:

refreshOn

Returns:

this.

tokenSource

public AuthenticationResultMetadata.AuthenticationResultMetadataBuilder tokenSource(TokenSource tokenSource)

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

Parameters:

tokenSource

Returns:

this.

toString

public String toString()

Overrides:

AuthenticationResultMetadata.AuthenticationResultMetadataBuilder.toString()

Applies to