Constructor and Description |
---|
User()
Default constructor.
|
User(java.lang.String identifier)
Constructor.
|
User(java.lang.String identifier,
char[] secret)
Constructor.
|
User(java.lang.String identifier,
char[] secret,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email)
Constructor.
|
User(java.lang.String identifier,
java.lang.String secret)
Constructor.
|
User(java.lang.String identifier,
java.lang.String secret,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEmail()
Returns the email.
|
java.lang.String |
getFirstName()
Returns the first name.
|
java.lang.String |
getIdentifier()
Returns the identifier.
|
java.lang.String |
getLastName()
Returns the last name.
|
java.lang.String |
getName()
Returns the user identifier.
|
char[] |
getSecret()
Returns the secret.
|
void |
setEmail(java.lang.String email)
Sets the email.
|
void |
setFirstName(java.lang.String firstName)
Sets the first name.
|
void |
setIdentifier(java.lang.String identifier)
Sets the identifier.
|
void |
setLastName(java.lang.String lastName)
Sets the last name.
|
void |
setSecret(char[] secret)
Sets the secret.
|
java.lang.String |
toString() |
public User()
public User(java.lang.String identifier)
identifier
- The identifier (login).public User(java.lang.String identifier, char[] secret)
identifier
- The identifier (login).secret
- The identification secret.public User(java.lang.String identifier, char[] secret, java.lang.String firstName, java.lang.String lastName, java.lang.String email)
identifier
- The identifier (login).secret
- The identification secret.firstName
- The first name.lastName
- The last name.email
- The email.public User(java.lang.String identifier, java.lang.String secret)
identifier
- The identifier (login).secret
- The identification secret.public User(java.lang.String identifier, java.lang.String secret, java.lang.String firstName, java.lang.String lastName, java.lang.String email)
identifier
- The identifier (login).secret
- The identification secret.firstName
- The first name.lastName
- The last name.email
- The email.public java.lang.String getEmail()
public java.lang.String getFirstName()
public java.lang.String getIdentifier()
public java.lang.String getLastName()
public java.lang.String getName()
getName
in interface java.security.Principal
getIdentifier()
public char[] getSecret()
public void setEmail(java.lang.String email)
email
- The email.public void setFirstName(java.lang.String firstName)
firstName
- The first name.public void setIdentifier(java.lang.String identifier)
identifier
- The identifier.public void setLastName(java.lang.String lastName)
lastName
- The last name.public void setSecret(char[] secret)
secret
- The secret.public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
Copyright © 2005-2024 Restlet.