Class SetupResponse
- java.lang.Object
-
- com.rivet.api.resources.identity.types.SetupResponse
-
public final class SetupResponse extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetupResponse._FinalStagestatic classSetupResponse.Builderstatic interfaceSetupResponse.GameIdStagestatic interfaceSetupResponse.IdentityStagestatic interfaceSetupResponse.IdentityTokenExpireTsStagestatic interfaceSetupResponse.IdentityTokenStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetupResponse.IdentityTokenStagebuilder()booleanequals(java.lang.Object other)java.util.UUIDgetGameId()ProfilegetIdentity()java.lang.StringgetIdentityToken()java.time.OffsetDateTimegetIdentityTokenExpireTs()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getIdentityToken
public java.lang.String getIdentityToken()
- Returns:
- Token used to authenticate the identity.
Should be stored somewhere permanent.
Pass this to
rivet.api.identity#Setup$existing_identity_tokennext timerivet.api.identity#Setupis called. Token has a 90 day TTL. This means that ifrivet.api.identity#Setupis not called again within 90 days, the token will no longer be valid. If this happens, the user can recover their account through the linking process (seerivet.api.identity#PrepareGameLink). This token should be stored locally and never sent to a server or another device. If this token is compromised, anyone with access to this token has control of the identity.
-
getIdentityTokenExpireTs
public java.time.OffsetDateTime getIdentityTokenExpireTs()
- Returns:
- If this token is comprimised, anyone with access to this token has control of the identity.
-
getIdentity
public Profile getIdentity()
- Returns:
- Information about the identity that was just authenticated.
-
getGameId
public java.util.UUID getGameId()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static SetupResponse.IdentityTokenStage builder()
-
-