Class SetupResponse.Builder
- java.lang.Object
-
- com.rivet.api.resources.identity.types.SetupResponse.Builder
-
- All Implemented Interfaces:
SetupResponse._FinalStage,SetupResponse.GameIdStage,SetupResponse.IdentityStage,SetupResponse.IdentityTokenExpireTsStage,SetupResponse.IdentityTokenStage
- Enclosing class:
- SetupResponse
public static final class SetupResponse.Builder extends java.lang.Object implements SetupResponse.IdentityTokenStage, SetupResponse.IdentityTokenExpireTsStage, SetupResponse.IdentityStage, SetupResponse.GameIdStage, SetupResponse._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetupResponsebuild()SetupResponse.Builderfrom(SetupResponse other)SetupResponse._FinalStagegameId(java.util.UUID gameId)SetupResponse.GameIdStageidentity(Profile identity)Information about the identity that was just authenticated.SetupResponse.IdentityTokenExpireTsStageidentityToken(java.lang.String identityToken)Token used to authenticate the identity.SetupResponse.IdentityStageidentityTokenExpireTs(java.time.OffsetDateTime identityTokenExpireTs)If this token is comprimised, anyone with access to this token has control of the identity.
-
-
-
Method Detail
-
from
public SetupResponse.Builder from(SetupResponse other)
- Specified by:
fromin interfaceSetupResponse.IdentityTokenStage
-
identityToken
public SetupResponse.IdentityTokenExpireTsStage identityToken(java.lang.String identityToken)
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.- Specified by:
identityTokenin interfaceSetupResponse.IdentityTokenStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
identityTokenExpireTs
public SetupResponse.IdentityStage identityTokenExpireTs(java.time.OffsetDateTime identityTokenExpireTs)
If this token is comprimised, anyone with access to this token has control of the identity.
- Specified by:
identityTokenExpireTsin interfaceSetupResponse.IdentityTokenExpireTsStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
identity
public SetupResponse.GameIdStage identity(Profile identity)
Information about the identity that was just authenticated.
- Specified by:
identityin interfaceSetupResponse.IdentityStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
gameId
public SetupResponse._FinalStage gameId(java.util.UUID gameId)
- Specified by:
gameIdin interfaceSetupResponse.GameIdStage
-
build
public SetupResponse build()
- Specified by:
buildin interfaceSetupResponse._FinalStage
-
-