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:
  • Method Details

    • 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, feature will return FeatureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from featureAsString().

      Returns:
      The state of refresh token rotation for the current app client.
      See Also:
    • 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, feature will return FeatureType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from featureAsString().

      Returns:
      The state of refresh token rotation for the current app client.
      See Also:
    • 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. When RetryGracePeriodSeconds is 0, 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. When RetryGracePeriodSeconds is 0, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.
    • toBuilder

      Specified by:
      toBuilder in interface ToCopyableBuilder<RefreshTokenRotationType.Builder,RefreshTokenRotationType>
    • builder

      public static RefreshTokenRotationType.Builder builder()
    • serializableBuilderClass

      public static Class<? extends RefreshTokenRotationType.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo