Package org.restlet.security
Class User
java.lang.Object
org.restlet.security.User
- All Implemented Interfaces:
Principal
User part of a security realm. Note the same user can be member of several
groups.
-
Constructor Summary
ConstructorsConstructorDescriptionUser()Default constructor.Constructor.Constructor.Constructor.Constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()Returns the email.Returns the first name.Returns the identifier.Returns the last name.getName()Returns the user identifier.char[]Returns the secret.voidSets the email.voidsetFirstName(String firstName) Sets the first name.voidsetIdentifier(String identifier) Sets the identifier.voidsetLastName(String lastName) Sets the last name.voidsetSecret(char[] secret) Sets the secret.toString()
-
Constructor Details
-
User
public User()Default constructor. -
User
Constructor.- Parameters:
identifier- The identifier (login).
-
User
Constructor.- Parameters:
identifier- The identifier (login).secret- The identification secret.
-
User
Constructor.- Parameters:
identifier- The identifier (login).secret- The identification secret.firstName- The first name.lastName- The last name.email- The email.
-
User
Constructor.- Parameters:
identifier- The identifier (login).secret- The identification secret.
-
User
Constructor.- Parameters:
identifier- The identifier (login).secret- The identification secret.firstName- The first name.lastName- The last name.email- The email.
-
-
Method Details
-
getEmail
Returns the email.- Returns:
- The email.
-
getFirstName
Returns the first name.- Returns:
- The first name.
-
getIdentifier
Returns the identifier.- Returns:
- The identifier.
-
getLastName
Returns the last name.- Returns:
- The last name.
-
getName
Returns the user identifier. -
getSecret
public char[] getSecret()Returns the secret.- Returns:
- The secret.
-
setEmail
Sets the email.- Parameters:
email- The email.
-
setFirstName
Sets the first name.- Parameters:
firstName- The first name.
-
setIdentifier
Sets the identifier.- Parameters:
identifier- The identifier.
-
setLastName
Sets the last name.- Parameters:
lastName- The last name.
-
setSecret
public void setSecret(char[] secret) Sets the secret.- Parameters:
secret- The secret.
-
toString
-