Class OAuthSettings.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.OAuthSettings.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OAuthSettings>
- Enclosing interface:
OAuthSettings
@Stability(Stable)
public static final class OAuthSettings.Builder
extends Object
implements software.amazon.jsii.Builder<OAuthSettings>
A builder for
OAuthSettings-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.callbackUrls(List<String> callbackUrls) Sets the value ofOAuthSettings.getCallbackUrls()defaultRedirectUri(String defaultRedirectUri) Sets the value ofOAuthSettings.getDefaultRedirectUri()flows(OAuthFlows flows) Sets the value ofOAuthSettings.getFlows()logoutUrls(List<String> logoutUrls) Sets the value ofOAuthSettings.getLogoutUrls()scopes(List<? extends OAuthScope> scopes) Sets the value ofOAuthSettings.getScopes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
callbackUrls
Sets the value ofOAuthSettings.getCallbackUrls()- Parameters:
callbackUrls- List of allowed redirect URLs for the identity providers.- Returns:
this
-
defaultRedirectUri
Sets the value ofOAuthSettings.getDefaultRedirectUri()- Parameters:
defaultRedirectUri- The default redirect URI. Must be in thecallbackUrlslist. A redirect URI must:- Be an absolute URI
- Be registered with the authorization server.
- Not include a fragment component.
- Returns:
this
-
flows
Sets the value ofOAuthSettings.getFlows()- Parameters:
flows- OAuth flows that are allowed with this client.- Returns:
this
-
logoutUrls
Sets the value ofOAuthSettings.getLogoutUrls()- Parameters:
logoutUrls- List of allowed logout URLs for the identity providers.- Returns:
this
-
scopes
Sets the value ofOAuthSettings.getScopes()- Parameters:
scopes- OAuth scopes that are allowed with this client.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OAuthSettings>- Returns:
- a new instance of
OAuthSettings - Throws:
NullPointerException- if any required attribute was not provided
-