Identity

Identity

(private) new Identity()

Identity class
Source:

Methods

delete(callback)

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

getIdentifier() → {String}

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

getOperator() → {String}

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

getSecret() → {String}

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

getType() → {String}

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

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
Parameters:
Name Type Description
newCredential String the new identifier
password String the secret
callback UpdateCredentialCallback the callback called after the operation is done
Source:

updateSecret(oldSecret, newSecret, callback)

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