Modifier and Type | Method and Description |
---|---|
PasswordCheckResult |
checkPassword(char[] password)
Deprecated.
As of version 1.8, replaced by
UserProvider.checkUserPassword(String, char[]) |
String |
getAttribute(String attributeName)
Returns the value of the provided attribute.
|
String[] |
getAttributeValues(String attributeName)
Returns an array of values for an attribute.
|
Set<String> |
getGroups()
Returns the groups in which the user is included.
|
Locale |
getLocale()
Returns the locale of the user or
null , if no locale is
maintained for the user. |
Set<String> |
getRoles()
Returns a set of roles assigned to the user.
|
boolean |
hasRole(String roleName)
Returns whether the user is assigned to the role with the provided name.
|
boolean |
isValid(Calendar date)
Returns the user's validity at the specified point in time.
|
Set<String> |
listAttributes()
Returns a set of system-specific aliases of all attributes of this user.
|
PasswordCheckResult checkPassword(char[] password) throws PersistenceException
UserProvider.checkUserPassword(String, char[])
PersistenceException
String getAttribute(String attributeName) throws UnsupportedUserAttributeException
null
is returned.attributeName
- The system-specific alias of the attribute to read.null
.UnsupportedUserAttributeException
- If the method is called with the attribute name which is not
supported by the user store.Set<String> listAttributes()
Locale getLocale()
null
, if no locale is
maintained for the user.null
.boolean hasRole(String roleName)
roleName
- The name of the role to check.True
if the user is assigned to the role, otherwise
false
.boolean isValid(Calendar date)
date
- The date for which the validity should be checked.True
if the user is valid on the specified point in
time, otherwise false
.Set<String> getRoles()
String[] getAttributeValues(String attributeName)
null
is returned.attributeName
- The alias of the attribute to read.null
.Copyright © 2016 SAP. All Rights Reserved.