java.lang.Object
io.inverno.mod.security.identity.PersonIdentity
- All Implemented Interfaces:
Identity
A basic identity implementation exposing basic personal information.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionPersonIdentity
(String uid, String firstName, String lastName, String email) Creates a person identity. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
Returns the person's email address.Returns the person's first name.Returns the person's last name.getUid()
Returns the unique identifier that identifies the person.void
Sets the person's email address.void
setFirstName
(String firstName) Sets the person's first name.void
setLastName
(String lastName) Sets the person's last name.
-
Constructor Details
-
PersonIdentity
Creates a person identity.
- Parameters:
uid
- the unique identifier of the personfirstName
- the person's first namelastName
- the person's last nameemail
- the person's email address
-
-
Method Details
-
getUid
Returns the unique identifier that identifies the person.
-
getFirstName
Returns the person's first name.
- Returns:
- the first name
-
setFirstName
Sets the person's first name.
- Parameters:
firstName
- the first name to set
-
getLastName
Returns the person's last name.
- Returns:
- the last name
-
setLastName
Sets the person's last name.
- Parameters:
lastName
- the last name to set
-
getEmail
Returns the person's email address.
- Returns:
- the email address
-
setEmail
Sets the person's email address.
- Parameters:
email
- the email address to set
-