|
Clearspace API (1.10.16) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
The interface User is used to identify a user and provide authentication. Classes implementing the interface must support the following methods
UserProvider| Method Summary | |
|---|---|
boolean |
authenticate(char[] password)
Authenticate the user with the given password |
java.lang.String |
getEmail()
User's email address |
java.lang.String |
getID()
Returns the unique identifier for this user. |
char[] |
getPassword()
return user's password |
java.lang.String |
getPasswordHash()
return user's password hash |
java.lang.String |
getUsername()
returns the username |
void |
setEmail(java.lang.String email)
Set user's email address |
void |
setId(java.lang.String id)
Sets the user's unique id. |
void |
setPassword(char[] password)
Set the password |
void |
setPasswordHash(java.lang.String hash)
Set the password hash |
void |
setUsername(java.lang.String username)
Sets the username. |
| Method Detail |
|---|
boolean authenticate(char[] password)
password - password
java.lang.String getID()
void setId(java.lang.String id)
throws java.lang.UnsupportedOperationException
id - user's id
java.lang.UnsupportedOperationException - if the operation is not implemented by the providerjava.lang.String getUsername()
void setUsername(java.lang.String username)
throws java.lang.UnsupportedOperationException
username - username
java.lang.UnsupportedOperationException - if the operation is not implemented by the providerjava.lang.String getEmail()
void setEmail(java.lang.String email)
throws java.lang.UnsupportedOperationException
email - email address
java.lang.UnsupportedOperationException - the operation is not implemented
char[] getPassword()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - the operation is not implemented
void setPassword(char[] password)
throws java.lang.UnsupportedOperationException
password - new password
java.lang.UnsupportedOperationException - the operation is not implemented
java.lang.String getPasswordHash()
throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException - the operation is not implemented
void setPasswordHash(java.lang.String hash)
throws java.lang.UnsupportedOperationException
hash - password hash
java.lang.UnsupportedOperationException - the operation is not implemented
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||