Class OpenIdConnectConfig.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.OpenIdConnectConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OpenIdConnectConfig>
- Enclosing interface:
OpenIdConnectConfig
@Stability(Stable)
public static final class OpenIdConnectConfig.Builder
extends Object
implements software.amazon.jsii.Builder<OpenIdConnectConfig>
A builder for
OpenIdConnectConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofOpenIdConnectConfig.getClientId()
oidcProvider
(String oidcProvider) Sets the value ofOpenIdConnectConfig.getOidcProvider()
tokenExpiryFromAuth
(Number tokenExpiryFromAuth) Sets the value ofOpenIdConnectConfig.getTokenExpiryFromAuth()
tokenExpiryFromIssue
(Number tokenExpiryFromIssue) Sets the value ofOpenIdConnectConfig.getTokenExpiryFromIssue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
oidcProvider
Sets the value ofOpenIdConnectConfig.getOidcProvider()
- Parameters:
oidcProvider
- The issuer for the OIDC configuration. This parameter is required. The issuer returned by discovery must exactly match the value ofiss
in the OIDC token.- Returns:
this
-
clientId
Sets the value ofOpenIdConnectConfig.getClientId()
- Parameters:
clientId
- The client identifier of the Relying party at the OpenID identity provider. A regular expression can be specified so AppSync can validate against multiple client identifiers at a time.- Returns:
this
-
tokenExpiryFromAuth
@Stability(Stable) public OpenIdConnectConfig.Builder tokenExpiryFromAuth(Number tokenExpiryFromAuth) Sets the value ofOpenIdConnectConfig.getTokenExpiryFromAuth()
- Parameters:
tokenExpiryFromAuth
- The number of milliseconds an OIDC token is valid after being authenticated by OIDC provider.auth_time
claim in OIDC token is required for this validation to work.- Returns:
this
-
tokenExpiryFromIssue
@Stability(Stable) public OpenIdConnectConfig.Builder tokenExpiryFromIssue(Number tokenExpiryFromIssue) Sets the value ofOpenIdConnectConfig.getTokenExpiryFromIssue()
- Parameters:
tokenExpiryFromIssue
- The number of milliseconds an OIDC token is valid after being issued to a user. This validation usesiat
claim of OIDC token.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<OpenIdConnectConfig>
- Returns:
- a new instance of
OpenIdConnectConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-