Class ClientSecretCreateParams.ExpiresAfter
-
- All Implemented Interfaces:
public final class ClientSecretCreateParams.ExpiresAfter
Configuration for the client secret expiration. Expiration refers to the time after which a client secret will no longer be valid for creating sessions. The session itself may continue after that time once started. A secret can be used to create multiple sessions until it expires.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ClientSecretCreateParams.ExpiresAfter.Builder
A builder for ExpiresAfter.
public final class
ClientSecretCreateParams.ExpiresAfter.Anchor
The anchor point for the client secret expiration, meaning that
seconds
will be added to thecreated_at
time of the client secret to produce an expiration timestamp. Onlycreated_at
is currently supported.
-
Method Summary
Modifier and Type Method Description final Optional<ClientSecretCreateParams.ExpiresAfter.Anchor>
anchor()
The anchor point for the client secret expiration, meaning that seconds
will be added to thecreated_at
time of the client secret to produce an expiration timestamp.final Optional<Long>
seconds()
The number of seconds from the anchor point to the expiration. final JsonField<ClientSecretCreateParams.ExpiresAfter.Anchor>
_anchor()
Returns the raw JSON value of anchor. final JsonField<Long>
_seconds()
Returns the raw JSON value of seconds. final Map<String, JsonValue>
_additionalProperties()
final ClientSecretCreateParams.ExpiresAfter.Builder
toBuilder()
final ClientSecretCreateParams.ExpiresAfter
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ClientSecretCreateParams.ExpiresAfter.Builder
builder()
Returns a mutable builder for constructing an instance of ExpiresAfter. -
-
Method Detail
-
anchor
final Optional<ClientSecretCreateParams.ExpiresAfter.Anchor> anchor()
The anchor point for the client secret expiration, meaning that
seconds
will be added to thecreated_at
time of the client secret to produce an expiration timestamp. Onlycreated_at
is currently supported.
-
seconds
final Optional<Long> seconds()
The number of seconds from the anchor point to the expiration. Select a value between
10
and7200
(2 hours). This default to 600 seconds (10 minutes) if not specified.
-
_anchor
final JsonField<ClientSecretCreateParams.ExpiresAfter.Anchor> _anchor()
Returns the raw JSON value of anchor.
Unlike anchor, this method doesn't throw if the JSON field has an unexpected type.
-
_seconds
final JsonField<Long> _seconds()
Returns the raw JSON value of seconds.
Unlike seconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ClientSecretCreateParams.ExpiresAfter.Builder toBuilder()
-
validate
final ClientSecretCreateParams.ExpiresAfter validate()
-
builder
final static ClientSecretCreateParams.ExpiresAfter.Builder builder()
Returns a mutable builder for constructing an instance of ExpiresAfter.
-
-
-
-