Interface CfnUserPoolClient.RefreshTokenRotationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnUserPoolClient.RefreshTokenRotationProperty.Jsii$Proxy
- Enclosing class:
CfnUserPoolClient
@Stability(Stable)
public static interface CfnUserPoolClient.RefreshTokenRotationProperty
extends software.amazon.jsii.JsiiSerializable
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.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cognito.*; RefreshTokenRotationProperty refreshTokenRotationProperty = RefreshTokenRotationProperty.builder() .feature("feature") .retryGracePeriodSeconds(123) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnUserPoolClient.RefreshTokenRotationProperty
static final class
An implementation forCfnUserPoolClient.RefreshTokenRotationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The state of refresh token rotation for the current app client.default Number
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.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getFeature
The state of refresh token rotation for the current app client.- See Also:
-
getRetryGracePeriodSeconds
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.This allows for client-side retries. When
RetryGracePeriodSeconds
is0
, the grace period is disabled and a successful request immediately invalidates the submitted refresh token.- See Also:
-
builder
-