Class SessionCreateResponse.ClientSecret
-
- All Implemented Interfaces:
public final class SessionCreateResponse.ClientSecret
Ephemeral key returned by the API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
SessionCreateResponse.ClientSecret.Builder
A builder for ClientSecret.
-
Method Summary
Modifier and Type Method Description final Long
expiresAt()
Timestamp for when the token expires. final String
value()
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.Builder
toBuilder()
final SessionCreateResponse.ClientSecret
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static SessionCreateResponse.ClientSecret.Builder
builder()
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()
-
-
-
-