Class ClientAuthenticationResultType
java.lang.Object
software.amazon.awssdk.services.cognitoidentityprovider.model.ClientAuthenticationResultType
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ClientAuthenticationResultType.Builder,ClientAuthenticationResultType>
@Generated("software.amazon.awssdk:codegen")
public final class ClientAuthenticationResultType
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<ClientAuthenticationResultType.Builder,ClientAuthenticationResultType>
The access token and its metadata from a machine-to-machine (M2M) client credentials grant.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe access token for the requested app client.builder()final booleanfinal booleanequalsBySdkFields(Object obj) final IntegerThe number of seconds until the access token expires.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends ClientAuthenticationResultType.Builder>final StringThe type of the token.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
The access token for the requested app client. Present this token to a resource server to authorize a request, using the scopes granted in the token.
- Returns:
- The access token for the requested app client. Present this token to a resource server to authorize a request, using the scopes granted in the token.
-
expiresIn
The number of seconds until the access token expires.
- Returns:
- The number of seconds until the access token expires.
-
tokenType
The type of the token. For example,
Bearer.- Returns:
- The type of the token. For example,
Bearer.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ClientAuthenticationResultType.Builder,ClientAuthenticationResultType>
-
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
-