Interface OAuth2AuthenticatorConfig.Builder
- Enclosing interface:
OAuth2AuthenticatorConfig
public static interface OAuth2AuthenticatorConfig.Builder
-
Method Summary
Modifier and TypeMethodDescriptionauthEndpoint(URI authEndpoint) authorizationCodeFlowTimeout(Duration authorizationCodeFlowTimeout) authorizationCodeFlowWebServerPort(int authorizationCodeFlowWebServerPort) backgroundThreadIdleTimeout(Duration backgroundThreadIdleTimeout) build()clientSecret(String clientSecret) clientSecret(Secret clientSecret) clientSecretSupplier(Supplier<String> clientSecret) defaultAccessTokenLifespan(Duration defaultAccessTokenLifespan) defaultRefreshTokenLifespan(Duration defaultRefreshTokenLifespan) deviceAuthEndpoint(URI deviceAuthEndpoint) deviceCodeFlowPollInterval(Duration deviceCodeFlowPollInterval) deviceCodeFlowTimeout(Duration deviceCodeFlowTimeout) executor(ScheduledExecutorService executor) extraRequestParameters(Map<String, ? extends String> extraRequestParameters) from(OAuth2AuthenticatorConfig config) impersonationConfig(ImpersonationConfig tokenExchangeConfig) objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) passwordSupplier(Supplier<String> password) preemptiveTokenRefreshIdleTimeout(Duration preemptiveTokenRefreshIdleTimeout) refreshSafetyWindow(Duration refreshSafetyWindow) Deprecated.sslContext(SSLContext sslContext) tokenEndpoint(URI tokenEndpoint) tokenExchangeConfig(TokenExchangeConfig tokenExchangeConfig) tokenExchangeEnabled(boolean tokenExchangeEnabled) Deprecated.
-
Method Details
-
from
-
issuerUrl
-
tokenEndpoint
-
authEndpoint
-
deviceAuthEndpoint
-
grantType
-
clientId
-
clientSecret
-
clientSecret
-
clientSecretSupplier
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder clientSecretSupplier(Supplier<String> clientSecret) -
username
-
password
-
password
-
passwordSupplier
-
scope
Deprecated. -
addScope
-
addScopes
-
scopes
-
extraRequestParameters
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder extraRequestParameters(Map<String, ? extends String> extraRequestParameters) -
tokenExchangeEnabled
@Deprecated @CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder tokenExchangeEnabled(boolean tokenExchangeEnabled) Deprecated. -
tokenExchangeConfig
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder tokenExchangeConfig(TokenExchangeConfig tokenExchangeConfig) -
impersonationConfig
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder impersonationConfig(ImpersonationConfig tokenExchangeConfig) -
defaultAccessTokenLifespan
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder defaultAccessTokenLifespan(Duration defaultAccessTokenLifespan) -
defaultRefreshTokenLifespan
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder defaultRefreshTokenLifespan(Duration defaultRefreshTokenLifespan) -
refreshSafetyWindow
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder refreshSafetyWindow(Duration refreshSafetyWindow) -
preemptiveTokenRefreshIdleTimeout
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder preemptiveTokenRefreshIdleTimeout(Duration preemptiveTokenRefreshIdleTimeout) -
backgroundThreadIdleTimeout
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder backgroundThreadIdleTimeout(Duration backgroundThreadIdleTimeout) -
authorizationCodeFlowTimeout
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder authorizationCodeFlowTimeout(Duration authorizationCodeFlowTimeout) -
authorizationCodeFlowWebServerPort
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder authorizationCodeFlowWebServerPort(int authorizationCodeFlowWebServerPort) -
deviceCodeFlowTimeout
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder deviceCodeFlowTimeout(Duration deviceCodeFlowTimeout) -
deviceCodeFlowPollInterval
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder deviceCodeFlowPollInterval(Duration deviceCodeFlowPollInterval) -
sslContext
-
objectMapper
@CanIgnoreReturnValue OAuth2AuthenticatorConfig.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
executor
-
build
OAuth2AuthenticatorConfig build()
-