Class SessionCreateResponse.ClientSecret
-
- All Implemented Interfaces:
public final class SessionCreateResponse.ClientSecretEphemeral key returned by the API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSessionCreateResponse.ClientSecret.BuilderA builder for ClientSecret.
-
Method Summary
Modifier and Type Method Description final LongexpiresAt()Timestamp for when the token expires. final Stringvalue()Ephemeral key usable in client environments to authenticate connections to the Realtime API. final JsonField<Long>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<String>_value()Returns the raw JSON value of value. final Map<String, JsonValue>_additionalProperties()final SessionCreateResponse.ClientSecret.BuildertoBuilder()final SessionCreateResponse.ClientSecretvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static SessionCreateResponse.ClientSecret.Builderbuilder()Returns a mutable builder for constructing an instance of ClientSecret. -
-
Method Detail
-
expiresAt
final Long expiresAt()
Timestamp for when the token expires. Currently, all tokens expire after one minute.
-
value
final String value()
Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.
-
_expiresAt
final JsonField<Long> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_value
final JsonField<String> _value()
Returns the raw JSON value of value.
Unlike value, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionCreateResponse.ClientSecret.Builder toBuilder()
-
validate
final SessionCreateResponse.ClientSecret validate()
-
builder
final static SessionCreateResponse.ClientSecret.Builder builder()
Returns a mutable builder for constructing an instance of ClientSecret.
The following fields are required:
.expiresAt() .value()
-
-
-
-