| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Auth |
build()
Instantiates
Auth with the set options. |
Auth.Builder |
setAdvancedSecurityDataCollection(boolean advancedSecurityDataCollectionFlag)
Sets flag to enable user context data collection.
|
Auth.Builder |
setAppClientId(java.lang.String mAppClientId)
Sets the Cognito App-Client Id.
|
Auth.Builder |
setAppClientSecret(java.lang.String mAppSecret)
Sets the Cognito App-Client Secret.
|
Auth.Builder |
setAppCognitoWebDomain(java.lang.String mAppWebDomain)
Sets Cognito Auth Web domain.
|
Auth.Builder |
setApplicationContext(android.content.Context mAppContext)
Sets the Android Application Context.
|
Auth.Builder |
setAuthHandler(AuthHandler mUserHandler)
Set the callback handler for
Auth. |
Auth.Builder |
setCustomTabsExtras(android.os.Bundle mCustomTabsExtras)
Sets customization bundle.
|
Auth.Builder |
setIdentityProvider(java.lang.String mIdentityProvider)
Sets the identity provider.
|
Auth.Builder |
setIdpIdentifier(java.lang.String mIdpIdentifier)
Sets the identity provider (idp) identifier.
|
Auth.Builder |
setPersistenceEnabled(boolean isPersistenceEnabled) |
Auth.Builder |
setScopes(java.util.Set<java.lang.String> mScopes)
Sets the scopes for tokens.
|
Auth.Builder |
setSignInRedirect(java.lang.String mSignInRedirect)
Sets the redirect uri for Sign-In operations.
|
Auth.Builder |
setSignOutRedirect(java.lang.String mSignOutRedirect)
Sets the redirect uri for Sign-Out operations.
|
Auth.Builder |
setUserPoolId(java.lang.String userPoolId)
Sets cognito user pool Id used by the application.
|
public Auth.Builder setPersistenceEnabled(boolean isPersistenceEnabled)
public Auth.Builder setAdvancedSecurityDataCollection(boolean advancedSecurityDataCollectionFlag)
Flag identifying if user context data should be collected for advanced security evaluation.
advancedSecurityDataCollectionFlag - value for data collectionpublic Auth.Builder setUserPoolId(java.lang.String userPoolId)
userPoolId - pool id for cognito user pool.public Auth.Builder setAppClientId(java.lang.String mAppClientId)
Required to allow the SDK to interact with the User-Pool.
mAppClientId - Required: The App-Client Id.public Auth.Builder setApplicationContext(android.content.Context mAppContext)
Required to allow the SDK to use the Android OS services.
mAppContext - Required: Context.public Auth.Builder setAppClientSecret(java.lang.String mAppSecret)
Required only if the used App-Client id has an associated secret. Note: When using App-Client secret, take necessary pre-cautions to obfuscate the secret in your app.
mAppSecret - Optional: The Secret associated with the App-Client Id.public Auth.Builder setAppCognitoWebDomain(java.lang.String mAppWebDomain)
Required to allow app users to interact with the Cognito Auth's hosted web pages.
mAppWebDomain - Required: The Cognito Auth Web Domain.public Auth.Builder setSignInRedirect(java.lang.String mSignInRedirect)
Required to allow Amazon Cognito Auth to correctly redirect after successful authentication. Must be a fully-qualified domain name and include the scheme. Must one of the allowed redirect uri for sign-in in the User-Pool. This is the redirect uri for SignUp and Forgot-Password processes.
mSignInRedirect - Required: The redirect uri for Sign-In.public Auth.Builder setSignOutRedirect(java.lang.String mSignOutRedirect)
Required to allow Amazon Cognito Auth to correctly redirect Sign-Out. Must be a fully-qualified domain name and include the scheme. Must one of the allowed redirect uri for sign-out in the User-Pool.
mSignOutRedirect - Required: The redirect uri for Sign-Out.public Auth.Builder setScopes(java.util.Set<java.lang.String> mScopes)
Optional. Set scopes when requesting tokens with specific set of permissions. Default scopes for the user-pool will be used if this is not set.
mScopes - Required: Scopes as a Set.public Auth.Builder setAuthHandler(AuthHandler mUserHandler)
Auth.mUserHandler - Required: AuthHandler.public Auth.Builder setIdentityProvider(java.lang.String mIdentityProvider)
Optional. Set identity provider for social sign in.
mIdentityProvider - Optional: Will change the hosted UI behavior to go directly to the specified social providerpublic Auth.Builder setIdpIdentifier(java.lang.String mIdpIdentifier)
Optional. Set idp identifier for provider mapping.
mIdpIdentifier - Optional: Will change the hosted UI behavior to go directly to the corresponding providerpublic Auth.Builder setCustomTabsExtras(android.os.Bundle mCustomTabsExtras)
Optional. Set a bundle to customize UI
mCustomTabsExtras - Optional: Pass to chrome custom tab a bundle of customization flags