Class PersonIdentity

java.lang.Object
io.inverno.mod.security.identity.PersonIdentity
All Implemented Interfaces:
Identity

public class PersonIdentity extends Object implements Identity

A basic identity implementation exposing basic personal information.

Since:
1.5
Author:
Jeremy Kuhn
See Also:
  • Constructor Details

    • PersonIdentity

      public PersonIdentity(String uid, String firstName, String lastName, String email)

      Creates a person identity.

      Parameters:
      uid - the unique identifier of the person
      firstName - the person's first name
      lastName - the person's last name
      email - the person's email address
  • Method Details

    • getUid

      public String getUid()

      Returns the unique identifier that identifies the person.

      Specified by:
      getUid in interface Identity
      Returns:
      the unique identifier
    • getFirstName

      public String getFirstName()

      Returns the person's first name.

      Returns:
      the first name
    • setFirstName

      public void setFirstName(String firstName)

      Sets the person's first name.

      Parameters:
      firstName - the first name to set
    • getLastName

      public String getLastName()

      Returns the person's last name.

      Returns:
      the last name
    • setLastName

      public void setLastName(String lastName)

      Sets the person's last name.

      Parameters:
      lastName - the last name to set
    • getEmail

      public String getEmail()

      Returns the person's email address.

      Returns:
      the email address
    • setEmail

      public void setEmail(String email)

      Sets the person's email address.

      Parameters:
      email - the email address to set