Package alpine.model

Class OidcUser

java.lang.Object
alpine.model.OidcUser
All Implemented Interfaces:
UserPrincipal, Serializable, Principal

public class OidcUser extends Object implements Serializable, Principal, UserPrincipal
Persistable object representing an OpenID Connect user.
Since:
1.8.0
See Also:
  • Constructor Details

    • OidcUser

      public OidcUser()
  • Method Details

    • getId

      public long getId()
      Description copied from interface: UserPrincipal
      The database id of the principal.
      Specified by:
      getId in interface UserPrincipal
      Returns:
      a long of the unique id
    • setId

      public void setId(long id)
      Description copied from interface: UserPrincipal
      Specifies the database id of the principal.
      Specified by:
      setId in interface UserPrincipal
      Parameters:
      id - a long of the unique id
    • getUsername

      public String getUsername()
      Description copied from interface: UserPrincipal
      The username of the principal.
      Specified by:
      getUsername in interface UserPrincipal
      Returns:
      a String of the username
    • setUsername

      public void setUsername(String username)
      Description copied from interface: UserPrincipal
      Specifies the username of the principal.
      Specified by:
      setUsername in interface UserPrincipal
      Parameters:
      username - the username of the principal
    • getSubjectIdentifier

      public String getSubjectIdentifier()
    • setSubjectIdentifier

      public void setSubjectIdentifier(String subjectIdentifier)
    • getEmail

      public String getEmail()
      Description copied from interface: UserPrincipal
      The email address of the principal.
      Specified by:
      getEmail in interface UserPrincipal
      Returns:
      a String of the email address
    • setEmail

      public void setEmail(String email)
      Description copied from interface: UserPrincipal
      Specifies the email address of the principal.
      Specified by:
      setEmail in interface UserPrincipal
      Parameters:
      email - the email address of the principal
    • getTeams

      public List<Team> getTeams()
      Description copied from interface: UserPrincipal
      A list of teams the principal is a member of.
      Specified by:
      getTeams in interface UserPrincipal
      Returns:
      a List of Team objects
    • setTeams

      public void setTeams(List<Team> teams)
      Description copied from interface: UserPrincipal
      Specifies the teams the principal is a member of.
      Specified by:
      setTeams in interface UserPrincipal
      Parameters:
      teams - a List of Team objects
    • getPermissions

      public List<Permission> getPermissions()
      Description copied from interface: UserPrincipal
      A list of permissions the principal has.
      Specified by:
      getPermissions in interface UserPrincipal
      Returns:
      a List of Permissions objects
    • setPermissions

      public void setPermissions(List<Permission> permissions)
      Description copied from interface: UserPrincipal
      Specifies the permissions the principal should have.
      Specified by:
      setPermissions in interface UserPrincipal
      Parameters:
      permissions - a List of Permission objects
    • getName

      @Deprecated public String getName()
      Deprecated.
      Do not use - only here to satisfy Principal implementation requirement.
      Specified by:
      getName in interface Principal
      Specified by:
      getName in interface UserPrincipal
      Returns:
      the value of getUsername()