Class AuthenticateOidcOptions.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.AuthenticateOidcOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AuthenticateOidcOptions>
- Enclosing interface:
AuthenticateOidcOptions
@Stability(Stable)
public static final class AuthenticateOidcOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AuthenticateOidcOptions>
A builder for
AuthenticateOidcOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowHttpsOutbound
(Boolean allowHttpsOutbound) Sets the value ofAuthenticateOidcOptions.getAllowHttpsOutbound()
authenticationRequestExtraParams
(Map<String, String> authenticationRequestExtraParams) Sets the value ofAuthenticateOidcOptions.getAuthenticationRequestExtraParams()
authorizationEndpoint
(String authorizationEndpoint) Sets the value ofAuthenticateOidcOptions.getAuthorizationEndpoint()
build()
Builds the configured instance.Sets the value ofAuthenticateOidcOptions.getClientId()
clientSecret
(SecretValue clientSecret) Sets the value ofAuthenticateOidcOptions.getClientSecret()
Sets the value ofAuthenticateOidcOptions.getIssuer()
next
(ListenerAction next) Sets the value ofAuthenticateOidcOptions.getNext()
onUnauthenticatedRequest
(UnauthenticatedAction onUnauthenticatedRequest) Sets the value ofAuthenticateOidcOptions.getOnUnauthenticatedRequest()
Sets the value ofAuthenticateOidcOptions.getScope()
sessionCookieName
(String sessionCookieName) Sets the value ofAuthenticateOidcOptions.getSessionCookieName()
sessionTimeout
(Duration sessionTimeout) Sets the value ofAuthenticateOidcOptions.getSessionTimeout()
tokenEndpoint
(String tokenEndpoint) Sets the value ofAuthenticateOidcOptions.getTokenEndpoint()
userInfoEndpoint
(String userInfoEndpoint) Sets the value ofAuthenticateOidcOptions.getUserInfoEndpoint()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationEndpoint
@Stability(Stable) public AuthenticateOidcOptions.Builder authorizationEndpoint(String authorizationEndpoint) Sets the value ofAuthenticateOidcOptions.getAuthorizationEndpoint()
- Parameters:
authorizationEndpoint
- The authorization endpoint of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
clientId
Sets the value ofAuthenticateOidcOptions.getClientId()
- Parameters:
clientId
- The OAuth 2.0 client identifier. This parameter is required.- Returns:
this
-
clientSecret
Sets the value ofAuthenticateOidcOptions.getClientSecret()
- Parameters:
clientSecret
- The OAuth 2.0 client secret. This parameter is required.- Returns:
this
-
issuer
Sets the value ofAuthenticateOidcOptions.getIssuer()
- Parameters:
issuer
- The OIDC issuer identifier of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
next
Sets the value ofAuthenticateOidcOptions.getNext()
- Parameters:
next
- What action to execute next. This parameter is required.- Returns:
this
-
tokenEndpoint
Sets the value ofAuthenticateOidcOptions.getTokenEndpoint()
- Parameters:
tokenEndpoint
- The token endpoint of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
userInfoEndpoint
Sets the value ofAuthenticateOidcOptions.getUserInfoEndpoint()
- Parameters:
userInfoEndpoint
- The user info endpoint of the IdP. This parameter is required. This must be a full URL, including the HTTPS protocol, the domain, and the path.- Returns:
this
-
allowHttpsOutbound
@Stability(Stable) public AuthenticateOidcOptions.Builder allowHttpsOutbound(Boolean allowHttpsOutbound) Sets the value ofAuthenticateOidcOptions.getAllowHttpsOutbound()
- Parameters:
allowHttpsOutbound
- Allow HTTPS outbound traffic to communicate with the IdP. Set this property to false if the IP address used for the IdP endpoint is identifiable and you want to control outbound traffic. Then allow HTTPS outbound traffic to the IdP's IP address using the listener'sconnections
property.- Returns:
this
-
authenticationRequestExtraParams
@Stability(Stable) public AuthenticateOidcOptions.Builder authenticationRequestExtraParams(Map<String, String> authenticationRequestExtraParams) Sets the value ofAuthenticateOidcOptions.getAuthenticationRequestExtraParams()
- Parameters:
authenticationRequestExtraParams
- The query parameters (up to 10) to include in the redirect request to the authorization endpoint.- Returns:
this
-
onUnauthenticatedRequest
@Stability(Stable) public AuthenticateOidcOptions.Builder onUnauthenticatedRequest(UnauthenticatedAction onUnauthenticatedRequest) Sets the value ofAuthenticateOidcOptions.getOnUnauthenticatedRequest()
- Parameters:
onUnauthenticatedRequest
- The behavior if the user is not authenticated.- Returns:
this
-
scope
Sets the value ofAuthenticateOidcOptions.getScope()
- Parameters:
scope
- The set of user claims to be requested from the IdP. To verify which scope values your IdP supports and how to separate multiple values, see the documentation for your IdP.- Returns:
this
-
sessionCookieName
@Stability(Stable) public AuthenticateOidcOptions.Builder sessionCookieName(String sessionCookieName) Sets the value ofAuthenticateOidcOptions.getSessionCookieName()
- Parameters:
sessionCookieName
- The name of the cookie used to maintain session information.- Returns:
this
-
sessionTimeout
Sets the value ofAuthenticateOidcOptions.getSessionTimeout()
- Parameters:
sessionTimeout
- The maximum duration of the authentication session.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AuthenticateOidcOptions>
- Returns:
- a new instance of
AuthenticateOidcOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-