Class ClientSecretCreateParams.ExpiresAfter
-
- All Implemented Interfaces:
public final class ClientSecretCreateParams.ExpiresAfterConfiguration 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 classClientSecretCreateParams.ExpiresAfter.BuilderA builder for ExpiresAfter.
public final classClientSecretCreateParams.ExpiresAfter.AnchorThe anchor point for the client secret expiration, meaning that
secondswill be added to thecreated_attime of the client secret to produce an expiration timestamp. Onlycreated_atis 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 secondswill be added to thecreated_attime 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.BuildertoBuilder()final ClientSecretCreateParams.ExpiresAftervalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ClientSecretCreateParams.ExpiresAfter.Builderbuilder()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
secondswill be added to thecreated_attime of the client secret to produce an expiration timestamp. Onlycreated_atis currently supported.
-
seconds
final Optional<Long> seconds()
The number of seconds from the anchor point to the expiration. Select a value between
10and7200(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()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ClientSecretCreateParams.ExpiresAfter.Builder builder()
Returns a mutable builder for constructing an instance of ExpiresAfter.
-
-
-
-