Class RefreshTokenRotationType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.RefreshTokenRotationType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RefreshTokenRotationType.Builder,RefreshTokenRotationType>
@Generated("software.amazon.awssdk:codegen") public final class RefreshTokenRotationType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RefreshTokenRotationType.Builder,RefreshTokenRotationType>
The configuration of your app client for refresh token rotation. When enabled, your app client issues new ID, access, and refresh tokens when users renew their sessions with refresh tokens. When disabled, token refresh issues only ID and access tokens.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRefreshTokenRotationType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RefreshTokenRotationType.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FeatureTypefeature()The state of refresh token rotation for the current app client.StringfeatureAsString()The state of refresh token rotation for the current app client.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerretryGracePeriodSeconds()When you request a token refresh withGetTokensFromRefreshToken, the original refresh token that you're rotating out can remain valid for a period of time of up to 60 seconds.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RefreshTokenRotationType.Builder>serializableBuilderClass()RefreshTokenRotationType.BuildertoBuilder()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
-
feature
public final FeatureType feature()
The state of refresh token rotation for the current app client.
If the service returns an enum value that is not available in the current SDK version,
featurewill returnFeatureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfeatureAsString().- Returns:
- The state of refresh token rotation for the current app client.
- See Also:
FeatureType
-
featureAsString
public final String featureAsString()
The state of refresh token rotation for the current app client.
If the service returns an enum value that is not available in the current SDK version,
featurewill returnFeatureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfeatureAsString().- Returns:
- The state of refresh token rotation for the current app client.
- See Also:
FeatureType
-
retryGracePeriodSeconds
public final Integer retryGracePeriodSeconds()
When you request a token refresh with
GetTokensFromRefreshToken, the original refresh token that you're rotating out can remain valid for a period of time of up to 60 seconds. This allows for client-side retries. WhenRetryGracePeriodSecondsis0, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.- Returns:
- When you request a token refresh with
GetTokensFromRefreshToken, the original refresh token that you're rotating out can remain valid for a period of time of up to 60 seconds. This allows for client-side retries. WhenRetryGracePeriodSecondsis0, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.
-
toBuilder
public RefreshTokenRotationType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RefreshTokenRotationType.Builder,RefreshTokenRotationType>
-
builder
public static RefreshTokenRotationType.Builder builder()
-
serializableBuilderClass
public static Class<? extends RefreshTokenRotationType.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
-
-