AuthenticationResultMetadata.AuthenticationResultMetadataBuilder Classe

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

public static class AuthenticationResultMetadata.AuthenticationResultMetadataBuilder

Resumo do método

Modificador e tipo Método e descrição
AuthenticationResultMetadata build()
AuthenticationResultMetadataBuilder cacheRefreshReason(CacheRefreshReason cacheRefreshReason)

Especifica o motivo para atualizar o token de acesso, consulte CacheRefreshReason os valores possíveis.

AuthenticationResultMetadataBuilder refreshOn(Long refreshOn)

Quando o token deve ser atualizado proativamente.

AuthenticationResultMetadataBuilder tokenSource(TokenSource tokenSource)

A origem dos tokens no AuthenticationResult, consulte TokenSource os valores possíveis

java.lang.String toString()

Métodos herdados de 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

Detalhes do método

build

public AuthenticationResultMetadata build()

cacheRefreshReason

public AuthenticationResultMetadata.AuthenticationResultMetadataBuilder cacheRefreshReason(CacheRefreshReason cacheRefreshReason)

Especifica o motivo para atualizar o token de acesso, consulte CacheRefreshReason os valores possíveis. NOT_APPLICABLE Será se o token foi retornado do cache ou se a API usada para buscar o token não tentar ler o cache.

Parâmetros:

cacheRefreshReason

Retornos:

this.

refreshOn

public AuthenticationResultMetadata.AuthenticationResultMetadataBuilder refreshOn(Long refreshOn)

Quando o token deve ser atualizado proativamente. Pode ser nulo ou 0 se a atualização proativa não for usada

Parâmetros:

refreshOn

Retornos:

this.

tokenSource

public AuthenticationResultMetadata.AuthenticationResultMetadataBuilder tokenSource(TokenSource tokenSource)

A origem dos tokens no AuthenticationResult, consulte TokenSource os valores possíveis

Parâmetros:

tokenSource

Retornos:

this.

toString

public String toString()

Substituições:

AuthenticationResultMetadata.AuthenticationResultMetadataBuilder.toString()

Aplica-se a