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 authentication result.
- 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()A valid access token that Amazon Cognito issued to the user who you want to authenticate.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()The ID token.NewDeviceMetadataTypenewDeviceMetadata()The new device metadata from an authentication result.StringrefreshToken()The refresh token.List<SdkField<?>>sdkFields()static Class<? extends AuthenticationResultType.Builder>serializableBuilderClass()AuthenticationResultType.BuildertoBuilder()StringtokenType()The token type.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()
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
- Returns:
- A valid access token that Amazon Cognito issued to the user who you want to authenticate.
-
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 token type.
- Returns:
- The token type.
-
refreshToken
public final String refreshToken()
The refresh token.
- Returns:
- The refresh token.
-
idToken
public final String idToken()
The ID token.
- Returns:
- The 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.
-
-