Package de.mhus.lib.core.security
Class JaasAccount
- java.lang.Object
-
- de.mhus.lib.core.security.JaasAccount
-
-
Field Summary
-
Fields inherited from interface de.mhus.lib.core.security.Account
ACT_CREATE, ACT_DELETE, ACT_MODIFY, ACT_READ, ACT_UPDATE, MAP_ADMIN
-
-
Constructor Summary
Constructors Constructor Description JaasAccount(String realm, Subject subject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IReadPropertiesgetAttributes()Gets all attributes of the user account.DategetCreationDate()Return the user creation date or null if not supported.StringgetDisplayName()String[]getGroups()Return the set of assigned groupsDategetModifyDate()Return the user modify date or null if not supported.StringgetName()UUIDgetUUID()Return the users UUID or null if not supported.booleanhasGroup(String role)booleanisActive()Return true if the user is active and the user can log in.booleanisSynthetic()booleanisValid()voidputAttributes(IReadProperties properties)Overwrites the given attributes, leaves all other properties untouched.booleanreloadAccount()Reload the account databooleanvalidatePassword(String password)
-
-
-
Method Detail
-
validatePassword
public boolean validatePassword(String password)
- Specified by:
validatePasswordin interfaceAccount
-
isSynthetic
public boolean isSynthetic()
- Specified by:
isSyntheticin interfaceAccount
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceAccount
-
getAttributes
public IReadProperties getAttributes()
Description copied from interface:AccountGets all attributes of the user account. If attributes are not supported return null;- Specified by:
getAttributesin interfaceAccount- Returns:
- all attributes in read only properties list or null if properties are not supported.
-
putAttributes
public void putAttributes(IReadProperties properties) throws de.mhus.lib.errors.NotSupportedException
Description copied from interface:AccountOverwrites the given attributes, leaves all other properties untouched. Use NullValue to remove a attribute from list.- Specified by:
putAttributesin interfaceAccount- Throws:
de.mhus.lib.errors.NotSupportedException- Thrown if attributes are not supported
-
getGroups
public String[] getGroups() throws de.mhus.lib.errors.NotSupportedException
Description copied from interface:AccountReturn the set of assigned groups
-
reloadAccount
public boolean reloadAccount()
Description copied from interface:AccountReload the account data- Specified by:
reloadAccountin interfaceAccount- Returns:
- true if the reload was possible
-
getCreationDate
public Date getCreationDate()
Description copied from interface:AccountReturn the user creation date or null if not supported.- Specified by:
getCreationDatein interfaceAccount- Returns:
- Creation date
-
getModifyDate
public Date getModifyDate()
Description copied from interface:AccountReturn the user modify date or null if not supported.- Specified by:
getModifyDatein interfaceAccount- Returns:
- Modify date
-
getUUID
public UUID getUUID()
Description copied from interface:AccountReturn the users UUID or null if not supported.
-
-