Class IdentityService

java.lang.Object
com.bitheads.braincloud.services.IdentityService

public class IdentityService
extends Object
  • Constructor Details

  • Method Details

    • attachFacebookIdentity

      public void attachFacebookIdentity​(String facebookId, String authenticationToken, IServerCallback callback)
      Attach the user's Facebook credentials to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      facebookId - The facebook id of the user
      authenticationToken - The validated token from the Facebook SDK (that will be further validated when sent to the bC service)
      callback - The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Facebook identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateFacebook().
    • mergeFacebookIdentity

      public void mergeFacebookIdentity​(String facebookId, String authenticationToken, IServerCallback callback)
      Merge the profile associated with the provided Facebook credentials with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      facebookId - The facebook id of the user
      authenticationToken - The validated token from the Facebook SDK (that will be further validated when sent to the bC service)
      callback - The method to be invoked when the server response is received
    • detachFacebookIdentity

      public void detachFacebookIdentity​(String facebookId, boolean continueAnon, IServerCallback callback)
      Detach the Facebook identity from this profile. Service Name - Identity Service Operation - Detach
      Parameters:
      facebookId - The facebook id of the user
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachAdvancedIdentity

      public void attachAdvancedIdentity​(AuthenticationType authenticationType, AuthenticationIds ids, String extraJson, IServerCallback callback)
      Attach the user's credentials to the current profile. Service Name - identity Service Operation - Attach
      Parameters:
      authenticationType - Universal, Email, Facebook, etc
      ids - Auth IDs structure
      extraJson - Additional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson.
      callback - The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the identity you provided already points to a different profile. You will likely want to offer the user the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateAdvanced().
    • mergeAdvancedIdentity

      public void mergeAdvancedIdentity​(AuthenticationType authenticationType, AuthenticationIds ids, String extraJson, IServerCallback callback)
      Merge the profile associated with the provided credentials with the current profile. Service Name - identity Service Operation - Merge
      Parameters:
      authenticationType - Universal, Email, Facebook, etc
      ids - Auth IDs structure
      extraJson - Additional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson.
      callback - The method to be invoked when the server response is received
    • detachAdvancedIdentity

      public void detachAdvancedIdentity​(AuthenticationType authenticationType, String externalId, boolean continueAnon, String extraJson, IServerCallback callback)
      Detach the identity from this profile. Service Name - identity Service Operation - Detach
      Parameters:
      authenticationType - Universal, Email, Facebook, etc
      externalId - User ID
      continueAnon - Proceed even if the profile will revert to anonymous?
      extraJson - Additional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson.
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set in_continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachFacebookLimitedIdentity

      public void attachFacebookLimitedIdentity​(String facebookLimitedId, String authenticationToken, IServerCallback callback)
      Attach the user's FacebookLimited credentials to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      facebookLimitedId - The facebookLimited id of the user
      authenticationToken - The validated token from the Facebook SDK (that will be further validated when sent to the bC service)
      callback - The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the FacebookLimited identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateFacebookLimited().
    • mergeFacebookLimitedIdentity

      public void mergeFacebookLimitedIdentity​(String facebookLimitedId, String authenticationToken, IServerCallback callback)
      Merge the profile associated with the provided FacebookLimited credentials with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      facebookLimitedId - The facebookLimited id of the user
      authenticationToken - The validated token from the Facebook SDK (that will be further validated when sent to the bC service)
      callback - The method to be invoked when the server response is received
    • detachFacebookLimitedIdentity

      public void detachFacebookLimitedIdentity​(String facebookLimitedId, boolean continueAnon, IServerCallback callback)
      Detach the FacebookLimited identity from this profile. Service Name - Identity Service Operation - Detach
      Parameters:
      facebookLimitedId - The facebookLimited id of the user
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachOculusIdentity

      public void attachOculusIdentity​(String oculusId, String oculusNonce, IServerCallback callback)
      Attach the user's Oculus credentials to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      oculusId - The Oculus id of the user
      oculusNonce - token from the Oculus SDK
      callback - The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Oculus identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateOculus().
    • mergeOculusIdentity

      public void mergeOculusIdentity​(String oculusId, String oculusNonce, IServerCallback callback)
      Merge the profile associated with the provided Oculus credentials with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      oculusId - The oculus id of the user
      oculusNonce - token from the Oculus SDK
      callback - The method to be invoked when the server response is received
    • detachOculusIdentity

      public void detachOculusIdentity​(String oculusId, boolean continueAnon, IServerCallback callback)
      Detach the Oculus identity from this profile. Service Name - Identity Service Operation - Detach
      Parameters:
      oculusId - The oculus id of the user
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachGameCenterIdentity

      public void attachGameCenterIdentity​(String gameCenterId, IServerCallback callback)
      Attach a Game Center identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      gameCenterId - The player's game center id (use the playerID property from the local GKPlayer object)
      callback - The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Facebook identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
    • mergeGameCenterIdentity

      public void mergeGameCenterIdentity​(String gameCenterId, IServerCallback callback)
      Merge the profile associated with the specified Game Center identity with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      gameCenterId - The player's game center id (use the playerID property from the local GKPlayer object)
      callback - The method to be invoked when the server response is received
    • detachGameCenterIdentity

      public void detachGameCenterIdentity​(String gameCenterId, boolean continueAnon, IServerCallback callback)
      Detach the Game Center identity from the current profile. Service Name - Identity Service Operation - Detach
      Parameters:
      gameCenterId - The player's game center id (use the playerID property from the local GKPlayer object)
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachGoogleIdentity

      public void attachGoogleIdentity​(String googleId, String authenticationToken, IServerCallback callback)
      Attach a Google identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      googleId - The google id of the player
      authenticationToken - The validated token from the Google SDK (that will be further validated when sent to the bC service)
      callback - The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Google identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
    • mergeGoogleIdentity

      public void mergeGoogleIdentity​(String googleId, String authenticationToken, IServerCallback callback)
      Merge the profile associated with the specified Google identity with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      googleId - The google id of the player
      authenticationToken - The validated token from the Google SDK (that will be further validated when sent to the bC service)
      callback - The callback method
    • detachGoogleIdentity

      public void detachGoogleIdentity​(String googleId, boolean continueAnon, IServerCallback callback)
      Detach the Google identity from the current profile. Service Name - Identity Service Operation - Detach
      Parameters:
      googleId - The google id of the player
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachGoogleOpenIdIdentity

      public void attachGoogleOpenIdIdentity​(String googleOpenId, String authenticationToken, IServerCallback callback)
      Attach a Google identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      googleOpenId - The google id of the player
      authenticationToken - The validated token from the Google SDK (that will be further validated when sent to the bC service)
      callback - The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Google identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
    • mergeGoogleOpenIdIdentity

      public void mergeGoogleOpenIdIdentity​(String googleOpenId, String authenticationToken, IServerCallback callback)
      Merge the profile associated with the specified Google identity with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      googleOpenId - The google id of the player
      authenticationToken - The validated token from the Google SDK (that will be further validated when sent to the bC service)
      callback - The callback method
    • detachGoogleOpenIdIdentity

      public void detachGoogleOpenIdIdentity​(String googleOpenId, boolean continueAnon, IServerCallback callback)
      Detach the Google identity from the current profile. Service Name - Identity Service Operation - Detach
      Parameters:
      googleOpenId - The google id of the player
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachAppleIdentity

      public void attachAppleIdentity​(String appleId, String authenticationToken, IServerCallback callback)
      Attach a Google identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      appleId - The google id of the player
      authenticationToken - The validated token from the Google SDK (that will be further validated when sent to the bC service)
      callback - The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Google identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
    • mergeAppleIdentity

      public void mergeAppleIdentity​(String appleId, String authenticationToken, IServerCallback callback)
      Merge the profile associated with the specified Google identity with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      appleId - The google id of the player
      authenticationToken - The validated token from the Google SDK (that will be further validated when sent to the bC service)
      callback - The callback method
    • detachAppleIdentity

      public void detachAppleIdentity​(String appleId, boolean continueAnon, IServerCallback callback)
      Detach the Google identity from the current profile. Service Name - Identity Service Operation - Detach
      Parameters:
      appleId - The google id of the player
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachEmailIdentity

      public void attachEmailIdentity​(String email, String password, IServerCallback callback)
      Attach a Email and Password identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      email - The player's e-mail address
      password - The player's password
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateEmailPassword().
    • mergeEmailIdentity

      public void mergeEmailIdentity​(String email, String password, IServerCallback callback)
      Merge the profile associated with the provided e=mail with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      email - The player's e-mail address
      password - The player's password
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
    • detachEmailIdentity

      public void detachEmailIdentity​(String email, boolean continueAnon, IServerCallback callback)
      Detach the e-mail identity from the current profile Service Name - Identity Service Operation - Detach
      Parameters:
      email - The player's e-mail address
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachUniversalIdentity

      public void attachUniversalIdentity​(String userId, String password, IServerCallback callback)
      Attach a Universal (userid + password) identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      userId - The player's user ID
      password - The player's password
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateEmailPassword().
    • mergeUniversalIdentity

      public void mergeUniversalIdentity​(String userId, String password, IServerCallback callback)
      Merge the profile associated with the provided e=mail with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      userId - The player's user ID
      password - The player's password
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
    • detachUniversalIdentity

      public void detachUniversalIdentity​(String userId, boolean continueAnon, IServerCallback callback)
      Detach the universal identity from the current profile Service Name - Identity Service Operation - Detach
      Parameters:
      userId - The player's user ID
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachSteamIdentity

      public void attachSteamIdentity​(String steamId, String sessionTicket, IServerCallback callback)
      Attach a Steam (userid + steamsessionTicket) identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      steamId - String representation of 64 bit steam id
      sessionTicket - The player's session ticket (hex encoded)
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure . Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateSteam().
    • mergeSteamIdentity

      public void mergeSteamIdentity​(String steamId, String sessionTicket, IServerCallback callback)
      Merge the profile associated with the provided steam userid with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      steamId - String representation of 64 bit steam id
      sessionTicket - The player's session ticket (hex encoded)
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
    • detachSteamIdentity

      public void detachSteamIdentity​(String steamId, boolean continueAnon, IServerCallback callback)
      Detach the steam identity from the current profile Service Name - Identity Service Operation - Detach
      Parameters:
      steamId - String representation of 64 bit steam id
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachUltraIdentity

      public void attachUltraIdentity​(String ultraUsername, String ultraIdToken, IServerCallback callback)
      Attach an Ultra identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      ultraUsername - it's what the user uses to log into the Ultra endpoint initially
      ultraIdToken - The "id_token" taken from Ultra's JWT.
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure . Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateUltra().
    • mergeUltraIdentity

      public void mergeUltraIdentity​(String ultraUsername, String ultraIdToken, IServerCallback callback)
      Merge the profile associated with the provided ultra account with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      ultraUsername - it's what the user uses to log into the Ultra endpoint initially
      ultraIdToken - The "id_token" taken from Ultra's JWT.
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
    • detachUltraIdentity

      public void detachUltraIdentity​(String ultraUsername, boolean continueAnon, IServerCallback callback)
      Detach the ultra identity from the current profile Service Name - Identity Service Operation - Detach
      Parameters:
      ultraUsername - it's what the user uses to log into the Ultra endpoint initially
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachTwitterIdentity

      public void attachTwitterIdentity​(String twitterId, String authenticationToken, String secret, IServerCallback callback)
      Attach the user's Twitter credentials to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      twitterId - The Twitter id of the user
      authenticationToken - The authentication token derrived from the twitter APIs
      secret - The secret given when attempting to link with Twitter
      callback - The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Twitter identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateTwitter().
    • mergeTwitterIdentity

      public void mergeTwitterIdentity​(String twitterId, String authenticationToken, String secret, IServerCallback callback)
      Merge the profile associated with the provided Twitter credentials with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      twitterId - The Twitter id of the user
      authenticationToken - The authentication token derrived from the twitter APIs
      secret - The secret given when attempting to link with Twitter
      callback - The method to be invoked when the server response is received
    • detachTwitterIdentity

      public void detachTwitterIdentity​(String twitterId, boolean continueAnon, IServerCallback callback)
      Detach the Twitter identity from this profile. Service Name - Identity Service Operation - Detach
      Parameters:
      twitterId - The Twitter id of the user
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • attachParseIdentity

      public void attachParseIdentity​(String parseId, String authenticationToken, IServerCallback callback)
      Attach a Parse identity to the current profile. Service Name - Identity Service Operation - Attach
      Parameters:
      parseId - The parse id of the player
      authenticationToken - The validated token from Parse (that will be further validated when sent to the bC service)
      callback - The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Parse identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
    • mergeParseIdentity

      public void mergeParseIdentity​(String parseId, String authenticationToken, IServerCallback callback)
      Merge the profile associated with the specified Parse identity with the current profile. Service Name - Identity Service Operation - Merge
      Parameters:
      parseId - The parse id of the player
      authenticationToken - The validated token from Parse (that will be further validated when sent to the bC service)
      callback - The callback method
    • detachParseIdentity

      public void detachParseIdentity​(String parseId, boolean continueAnon, IServerCallback callback)
      Detach the Parse identity from the current profile. Service Name - Identity Service Operation - Detach
      Parameters:
      parseId - The parse id of the player
      continueAnon - Proceed even if the profile will revert to anonymous?
      callback - The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
    • switchToChildProfile

      public void switchToChildProfile​(String childProfileId, String childAppId, boolean forceCreate, IServerCallback callback)
      Switch to a Child Profile Service Name - Identity Service Operation - SWITCH_TO_CHILD_PROFILE
      Parameters:
      childProfileId - The profileId of the child profile to switch to If null and forceCreate is true a new profile will be created
      childAppId - The appId of the child game to switch to
      forceCreate - Should a new profile be created if it does not exist?
      callback - The method to be invoked when the server response is received
    • switchToSingletonChildProfile

      public void switchToSingletonChildProfile​(String childAppId, boolean forceCreate, IServerCallback callback)
      Switches to a child profile of an app when only one profile exists If multiple profiles exist this returns an error Service Name - Identity Service Operation - SWITCH_TO_CHILD_PROFILE
      Parameters:
      childAppId - The id of the child app to switch to
      forceCreate - Should a new profile be created if it does not exist?
      callback - The method to be invoked when the server response is received
    • attachNonLoginUniversalId

      public void attachNonLoginUniversalId​(String externalId, IServerCallback callback)
      Attaches a univeral id to the current profile with no login capability. Service Name - Identity Service Operation - AttachNonLoginUniversalId
      Parameters:
      externalId - User id
      callback - The method to be invoked when the server response is received
    • updateUniversalIdLogin

      public void updateUniversalIdLogin​(String externalId, IServerCallback callback)
      Updates univeral id of the current profile. Service Name - Identity Service Operation - UpdateUniversalIdLogin
      Parameters:
      externalId - User id
      callback - The method to be invoked when the server response is received
    • switchToParentProfile

      public void switchToParentProfile​(String parentLevelName, IServerCallback callback)
      Switch to a Parent Profile Service Name - Identity Service Operation - SWITCH_TO_PARENT_PROFILE
      Parameters:
      parentLevelName - The level of the parent to switch to If null and forceCreate is true a new profile will be created
      callback - The method to be invoked when the server response is received
    • getChildProfiles

      public void getChildProfiles​(boolean includeSummaryData, IServerCallback callback)
      Returns a list of all child profiles in child Apps Service Name - Identity Service Operation - GET_CHILD_PROFILES
      Parameters:
      includeSummaryData - Whether to return the summary friend data along with this call
      callback - The method to be invoked when the server response is received
    • getIdentities

      public void getIdentities​(IServerCallback callback)
      Retrieve list of identities Service Name - Identity Service Operation - GET_IDENTITIES
      Parameters:
      callback - The method to be invoked when the server response is received
    • getExpiredIdentities

      public void getExpiredIdentities​(IServerCallback callback)
      Retrieve list of expired identities Service Name - Identity Service Operation - GET_EXPIRED_IDENTITIES
      Parameters:
      callback - The method to be invoked when the server response is received
    • refreshIdentity

      public void refreshIdentity​(String externalId, String authenticationToken, AuthenticationType authenticationType, IServerCallback callback)
      Refreshes an identity for this player Service Name - identity Service Operation - REFRESH_IDENTITY
      Parameters:
      externalId - User ID
      authenticationToken - Password or client side token
      authenticationType - Type of authentication
      callback - The method to be invoked when the server response is received
    • changeEmailIdentity

      public void changeEmailIdentity​(String oldEmailAddress, String password, String newEmailAddress, boolean updateContactEmail, IServerCallback callback)
      Allows email identity email address to be changed Service Name - identity Service Operation - CHANGE_EMAIL_IDENTITY
      Parameters:
      oldEmailAddress - Old email address
      password - Password for identity
      newEmailAddress - New email address
      updateContactEmail - Whether to update contact email in profile
      callback - The method to be invoked when the server response is received
    • attachParentWithIdentity

      public void attachParentWithIdentity​(String externalId, String authenticationToken, AuthenticationType authenticationType, String externalAuthName, boolean forceCreate, IServerCallback callback)
      Attach a new identity to a parent app Service Name - identity Service Operation - ATTACH_PARENT_WITH_IDENTITY
      Parameters:
      externalId - The users id for the new credentials
      authenticationToken - The password/token
      authenticationType - Type of identity
      externalAuthName - Optional - if attaching an external identity
      forceCreate - Should a new profile be created if it does not exist?
      callback - The method to be invoked when the server response is received
    • detachParent

      public void detachParent​(IServerCallback callback)
      Detaches parent from this player's profile Service Name - identity Service Operation - DETACH_PARENT
      Parameters:
      callback - The method to be invoked when the server response is received
    • attachPeerProfile

      public void attachPeerProfile​(String peer, String externalId, String authenticationToken, AuthenticationType authenticationType, String externalAuthName, boolean forceCreate, IServerCallback callback)
      Attaches a peer identity to this player's profile Service Name - identity Service Operation - ATTACH_PEER_PROFILE
      Parameters:
      peer - Name of the peer to connect to
      externalId - The users id for the new credentials
      authenticationToken - The password/token
      authenticationType - Type of identity
      externalAuthName - Optional - if attaching an external identity
      forceCreate - Should a new profile be created if it does not exist?
      callback - The method to be invoked when the server response is received
    • detachPeer

      public void detachPeer​(String peer, IServerCallback callback)
      Detaches a peer identity from this player's profile Service Name - identity Service Operation - DETACH_PEER
      Parameters:
      peer - Name of the peer to connect to
      callback - The method to be invoked when the server response is received
    • attachBlockchainIdentity

      public void attachBlockchainIdentity​(String blockchainConfig, String publicKey, IServerCallback callback)
      Attaches the given block chain public key identity to the current profile. Service Name - identity Service Operation - ATTACH_BLOCKCHAIN_IDENTITY
      Parameters:
      blockchainConfig - Identifies the block chain.
      publicKey - Block chain public key.
      callback - The method to be invoked when the server response is received
    • detachBlockchainIdentity

      public void detachBlockchainIdentity​(String blockchainConfig, IServerCallback callback)
      Detaches the blockchain identity to the current profile. Service Name - identity Service Operation - DETACH_BLOCKCHAIN_IDENTITY
      Parameters:
      blockchainConfig - Identifies the block chain.
      callback - The method to be invoked when the server response is received
    • getPeerProfiles

      public void getPeerProfiles​(IServerCallback callback)
      Returns a list of peer profiles attached to this user Service Name - identity Service Operation - GET_PEER_PROFILES
      Parameters:
      callback - The method to be invoked when the server response is received