Package de.mhus.lib.core.security
Interface Account
-
- All Superinterfaces:
Rightful
- All Known Implementing Classes:
JaasAccount
public interface Account extends Rightful
-
-
Field Summary
Fields Modifier and Type Field Description static StringACT_CREATEstatic StringACT_DELETEstatic StringACT_MODIFYstatic StringACT_READstatic StringACT_UPDATEstatic StringMAP_ADMIN
-
Method Summary
All Methods Instance Methods Abstract 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.UUIDgetUUID()Return the users UUID or null if not supported.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)
-
-
-
Field Detail
-
MAP_ADMIN
static final String MAP_ADMIN
- See Also:
- Constant Field Values
-
ACT_READ
static final String ACT_READ
- See Also:
- Constant Field Values
-
ACT_CREATE
static final String ACT_CREATE
- See Also:
- Constant Field Values
-
ACT_UPDATE
static final String ACT_UPDATE
- See Also:
- Constant Field Values
-
ACT_MODIFY
static final String ACT_MODIFY
- See Also:
- Constant Field Values
-
ACT_DELETE
static final String ACT_DELETE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isValid
boolean isValid()
-
validatePassword
boolean validatePassword(String password)
-
isSynthetic
boolean isSynthetic()
-
getDisplayName
String getDisplayName()
-
getAttributes
IReadProperties getAttributes()
Gets all attributes of the user account. If attributes are not supported return null;- Returns:
- all attributes in read only properties list or null if properties are not supported.
-
putAttributes
void putAttributes(IReadProperties properties) throws de.mhus.lib.errors.NotSupportedException
Overwrites the given attributes, leaves all other properties untouched. Use NullValue to remove a attribute from list.- Parameters:
properties-- Throws:
de.mhus.lib.errors.NotSupportedException- Thrown if attributes are not supported
-
getGroups
String[] getGroups() throws de.mhus.lib.errors.NotSupportedException
Return the set of assigned groups- Returns:
- List of groups
- Throws:
de.mhus.lib.errors.NotSupportedException
-
reloadAccount
boolean reloadAccount()
Reload the account data- Returns:
- true if the reload was possible
-
getCreationDate
Date getCreationDate()
Return the user creation date or null if not supported.- Returns:
- Creation date
-
getModifyDate
Date getModifyDate()
Return the user modify date or null if not supported.- Returns:
- Modify date
-
getUUID
UUID getUUID()
Return the users UUID or null if not supported.- Returns:
- Unique id of the user
-
isActive
boolean isActive()
Return true if the user is active and the user can log in.- Returns:
- True if the user can log in.
-
-