public static class SignOutOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SignOutOptions.Builder |
browserPackage(java.lang.String browserPackage)
If
invalidateTokens is true, this can optionally be used to specify which browser package should
perform the sign out action (e.g. |
SignOutOptions |
build()
Finalize the Builder and the options object will be returned.
|
SignOutOptions.Builder |
invalidateTokens(boolean invalidateTokens)
When the functionality is available, invalidate tokens on the server by making a call.
|
SignOutOptions.Builder |
signOutGlobally(boolean signOutGlobally)
Sign-out user from all active sessions across devices.
|
public SignOutOptions.Builder signOutGlobally(boolean signOutGlobally)
signOutGlobally
- true if the user is to be signed-out globallypublic SignOutOptions.Builder browserPackage(java.lang.String browserPackage)
invalidateTokens
is true, this can optionally be used to specify which browser package should
perform the sign out action (e.g. "org.mozilla.firefox"). Defaults to the Chrome package if not specified.browserPackage
- String specifying the browser to open custom tabs.public SignOutOptions.Builder invalidateTokens(boolean invalidateTokens)
invalidateTokens
- true if the user's token should be invalidatedpublic SignOutOptions build()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.