Package alpine.model
Class OidcUser
java.lang.Object
alpine.model.OidcUser
- All Implemented Interfaces:
UserPrincipal,Serializable,Principal
Persistable object representing an OpenID Connect user.
- Since:
- 1.8.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()The email address of the principal.longgetId()The database id of the principal.getName()Deprecated.A list of permissions the principal has.getTeams()A list of teams the principal is a member of.The username of the principal.voidSpecifies the email address of the principal.voidsetId(long id) Specifies the database id of the principal.voidsetPermissions(List<Permission> permissions) Specifies the permissions the principal should have.voidsetSubjectIdentifier(String subjectIdentifier) voidSpecifies the teams the principal is a member of.voidsetUsername(String username) Specifies the username of the principal.
-
Constructor Details
-
OidcUser
public OidcUser()
-
-
Method Details
-
getId
public long getId()Description copied from interface:UserPrincipalThe database id of the principal.- Specified by:
getIdin interfaceUserPrincipal- Returns:
- a long of the unique id
-
setId
public void setId(long id) Description copied from interface:UserPrincipalSpecifies the database id of the principal.- Specified by:
setIdin interfaceUserPrincipal- Parameters:
id- a long of the unique id
-
getUsername
Description copied from interface:UserPrincipalThe username of the principal.- Specified by:
getUsernamein interfaceUserPrincipal- Returns:
- a String of the username
-
setUsername
Description copied from interface:UserPrincipalSpecifies the username of the principal.- Specified by:
setUsernamein interfaceUserPrincipal- Parameters:
username- the username of the principal
-
getSubjectIdentifier
-
setSubjectIdentifier
-
getEmail
Description copied from interface:UserPrincipalThe email address of the principal.- Specified by:
getEmailin interfaceUserPrincipal- Returns:
- a String of the email address
-
setEmail
Description copied from interface:UserPrincipalSpecifies the email address of the principal.- Specified by:
setEmailin interfaceUserPrincipal- Parameters:
email- the email address of the principal
-
getTeams
Description copied from interface:UserPrincipalA list of teams the principal is a member of.- Specified by:
getTeamsin interfaceUserPrincipal- Returns:
- a List of Team objects
-
setTeams
Description copied from interface:UserPrincipalSpecifies the teams the principal is a member of.- Specified by:
setTeamsin interfaceUserPrincipal- Parameters:
teams- a List of Team objects
-
getPermissions
Description copied from interface:UserPrincipalA list of permissions the principal has.- Specified by:
getPermissionsin interfaceUserPrincipal- Returns:
- a List of Permissions objects
-
setPermissions
Description copied from interface:UserPrincipalSpecifies the permissions the principal should have.- Specified by:
setPermissionsin interfaceUserPrincipal- Parameters:
permissions- a List of Permission objects
-
getName
Deprecated.usegetUsername()Do not use - only here to satisfy Principal implementation requirement.- Specified by:
getNamein interfacePrincipal- Specified by:
getNamein interfaceUserPrincipal- Returns:
- the value of
getUsername()
-
getUsername()