Identity

Identity

(private) new Identity()

Identity class
Source:

Methods

delete(callback)

Delete this identity. This operation invalids the instance of this identity
Source:
Parameters:
Name Type Description
callback DeleteIdenityCallback the callback called after the operation is done

getIdentifier() → {String}

Return the identifier for that provider in the current real
Source:
Returns:
Type:
String
This could partially be obfuscated

getOperator() → {String}

Return the operator (available only for msisdn) or null
Source:
Returns:
Type:
String
The operator or null

getSecret() → {String}

Return the secret
Source:
Returns:
Type:
String
This is partially or entirely obfuscated

getType() → {String}

Return the type of the identity (facebook, google, msisdn, email)
Source:
Returns:
Type:
String

isConfirmed() → {Boolean}

Valid only for email identities, return if the email is confirmed (triangulate) or not
Source:
Returns:
Type:
Boolean

isValid() → {Boolean}

Return if this identity is changed (change pwd email etc...)
Source:
Returns:
Type:
Boolean

updateCredential(newCredential, password, callback)

Update the identifier. This operation invalids the instance of this identity
Source:
Parameters:
Name Type Description
newCredential String the new identifier
password String the secret
callback UpdateCredentialCallback the callback called after the operation is done

updateSecret(oldSecret, newSecret, callback)

Update the secret. This operation invalids the instance of this identity
Source:
Parameters:
Name Type Description
oldSecret String the old password
newSecret String the new password
callback UpdateSecretCallback the callback called after the operation is done