Package io.jans.casa.core.pojo
Class User
java.lang.Object
io.jans.casa.core.pojo.User
A java bean representing an end-user. It contains the most common attributes such as id, username, preferred
authentication method, etc. Use the setter and getters to manipulate values.
- Author:
- jgomer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFrom a collection of claims, it extracts the first value found for a claim whose name is passed.getId()booleanisAdmin()voidsetAdmin(boolean admin) voidvoidsetGivenName(String givenName) voidvoidsetLastName(String lastName) voidsetPictureURL(String pictureURL) voidsetPreferredMethod(String preferredMethod) voidsetUserName(String userName)
-
Constructor Details
-
User
public User()
-
-
Method Details
-
setClaims
-
getClaims
-
getClaim
From a collection of claims, it extracts the first value found for a claim whose name is passed. If claim is not found or has an empty list associated, it returns null- Parameters:
claimName- Claim to inspect- Returns:
- First value of claim or null
-
getUserName
-
getGivenName
-
isAdmin
public boolean isAdmin() -
getPreferredMethod
-
getId
-
getLastName
-
getPictureURL
-
setUserName
-
setGivenName
-
setAdmin
public void setAdmin(boolean admin) -
setId
-
setPreferredMethod
-
setLastName
-
setPictureURL
-