Class AuthenticationResultType
java.lang.Object
software.amazon.awssdk.services.cognitoidentityprovider.model.AuthenticationResultType
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AuthenticationResultType.Builder,AuthenticationResultType>
@Generated("software.amazon.awssdk:codegen")
public final class AuthenticationResultType
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<AuthenticationResultType.Builder,AuthenticationResultType>
The object that your application receives after authentication. Contains tokens and information for device authentication.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringYour user's access token.builder()final booleanfinal booleanequalsBySdkFields(Object obj) final IntegerThe expiration period of the authentication result in seconds.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringidToken()Your user's ID token.final NewDeviceMetadataTypeThe new device metadata from an authentication result.final StringYour user's refresh token.static Class<? extends AuthenticationResultType.Builder>final StringThe intended use of the token, for exampleBearer.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
accessToken
Your user's access token.
- Returns:
- Your user's access token.
-
expiresIn
The expiration period of the authentication result in seconds.
- Returns:
- The expiration period of the authentication result in seconds.
-
tokenType
The intended use of the token, for example
Bearer.- Returns:
- The intended use of the token, for example
Bearer.
-
refreshToken
Your user's refresh token.
- Returns:
- Your user's refresh token.
-
idToken
Your user's ID token.
- Returns:
- Your user's ID token.
-
newDeviceMetadata
The new device metadata from an authentication result.
- Returns:
- The new device metadata from an authentication result.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AuthenticationResultType.Builder,AuthenticationResultType>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-