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.
This data type is a response parameter of authentication operations like InitiateAuth, AdminInitiateAuth, RespondToAuthChallenge, and AdminRespondToAuthChallenge.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuthenticationResultType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccessToken()Your user's access token.static AuthenticationResultType.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IntegerexpiresIn()The expiration period of the authentication result in seconds.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringidToken()Your user's ID token.NewDeviceMetadataTypenewDeviceMetadata()The new device metadata from an authentication result.StringrefreshToken()Your user's refresh token.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AuthenticationResultType.Builder>serializableBuilderClass()AuthenticationResultType.BuildertoBuilder()StringtokenType()The intended use of the token, for exampleBearer.StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
accessToken
public final String accessToken()
Your user's access token.
- Returns:
- Your user's access token.
-
expiresIn
public final Integer expiresIn()
The expiration period of the authentication result in seconds.
- Returns:
- The expiration period of the authentication result in seconds.
-
tokenType
public final String tokenType()
The intended use of the token, for example
Bearer.- Returns:
- The intended use of the token, for example
Bearer.
-
refreshToken
public final String refreshToken()
Your user's refresh token.
- Returns:
- Your user's refresh token.
-
idToken
public final String idToken()
Your user's ID token.
- Returns:
- Your user's ID token.
-
newDeviceMetadata
public final NewDeviceMetadataType newDeviceMetadata()
The new device metadata from an authentication result.
- Returns:
- The new device metadata from an authentication result.
-
toBuilder
public AuthenticationResultType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AuthenticationResultType.Builder,AuthenticationResultType>
-
builder
public static AuthenticationResultType.Builder builder()
-
serializableBuilderClass
public static Class<? extends AuthenticationResultType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-