Class RefreshTokenRotationType
- All Implemented Interfaces:
Serializable,SdkPojo,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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final FeatureTypefeature()The state of refresh token rotation for the current app client.final StringThe state of refresh token rotation for the current app client.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerWhen 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.static Class<? extends RefreshTokenRotationType.Builder>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
-
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:
-
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:
-
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<RefreshTokenRotationType.Builder,RefreshTokenRotationType>
-
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
-