Class UserToken
-
- All Implemented Interfaces:
public final class UserToken
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserToken.BuilderA builder for UserToken.
public final classUserToken.ProviderKeypublic final classUserToken.DeviceInformation about the device the token came from.
public final classUserToken.ExpiryDateISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
public final classUserToken.TrackingTracking information about the device the token came from.
-
Method Summary
Modifier and Type Method Description final Stringtoken()Full body of the token. final UserToken.ProviderKeyproviderKey()final Optional<UserToken.Device>device()Information about the device the token came from. final Optional<UserToken.ExpiryDate>expiryDate()ISO 8601 formatted date the token expires. final JsonValue_properties()Properties about the token. final Optional<UserToken.Tracking>tracking()Tracking information about the device the token came from. final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<UserToken.ProviderKey>_providerKey()Returns the raw JSON value of providerKey. final JsonField<UserToken.Device>_device()Returns the raw JSON value of device. final JsonField<UserToken.ExpiryDate>_expiryDate()Returns the raw JSON value of expiryDate. final JsonField<UserToken.Tracking>_tracking()Returns the raw JSON value of tracking. final Map<String, JsonValue>_additionalProperties()final UserToken.BuildertoBuilder()final UserTokenvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserToken.Builderbuilder()Returns a mutable builder for constructing an instance of UserToken. -
-
Method Detail
-
providerKey
final UserToken.ProviderKey providerKey()
-
device
final Optional<UserToken.Device> device()
Information about the device the token came from.
-
expiryDate
final Optional<UserToken.ExpiryDate> expiryDate()
ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
-
_properties
final JsonValue _properties()
Properties about the token.
-
tracking
final Optional<UserToken.Tracking> tracking()
Tracking information about the device the token came from.
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, this method doesn't throw if the JSON field has an unexpected type.
-
_providerKey
final JsonField<UserToken.ProviderKey> _providerKey()
Returns the raw JSON value of providerKey.
Unlike providerKey, this method doesn't throw if the JSON field has an unexpected type.
-
_device
final JsonField<UserToken.Device> _device()
Returns the raw JSON value of device.
Unlike device, this method doesn't throw if the JSON field has an unexpected type.
-
_expiryDate
final JsonField<UserToken.ExpiryDate> _expiryDate()
Returns the raw JSON value of expiryDate.
Unlike expiryDate, this method doesn't throw if the JSON field has an unexpected type.
-
_tracking
final JsonField<UserToken.Tracking> _tracking()
Returns the raw JSON value of tracking.
Unlike tracking, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UserToken.Builder toBuilder()
-
builder
final static UserToken.Builder builder()
Returns a mutable builder for constructing an instance of UserToken.
The following fields are required:
.token() .providerKey()
-
-
-
-