public class CloudPersona extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
createAnonymous()
Deprecated.
Creates an anonymous persona that will be unique in the cloud, NEVER logout an anonymous user!
|
static void |
createFromToken(String token)
Deprecated.
Initializes the persona based on a token, since this method assumes binary transfer of a completed
token the token isn't verified in any way and the user is considered logged in.
|
static boolean |
createOrLogin(String login,
String password)
Deprecated.
Creates a new user if a user isn't occupying the given login already,
if the user exists performs a login operation.
|
static CloudPersona |
getCurrentPersona()
Deprecated.
This method returns the currently logged in persona or a blank persona
(token would be null)
|
String |
getToken()
Deprecated.
Returns a unique login token that represents the current user and his password, while this login token shouldn't
be user visible (it's a password too!) it can be transfered to a different device to give
them both identical user role and joined access.
|
void |
logout()
Deprecated.
Logs out the current user, notice that with an anonymous user this will effectively KILL all
the data in the cloud!
|
public static CloudPersona getCurrentPersona()
public String getToken()
public static void createFromToken(String token)
token
- the tokenpublic static boolean createAnonymous()
public static boolean createOrLogin(String login, String password)
login
- a user namepassword
- a passwordpublic void logout()