|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents component which provides management features for database of identities (UserStore) and certificate store (KeyStore).
Using PStoreService
it is possible to manage
users, users properties such as password or certificate,
key entries and trusted certificates in KeyStore.
Method Summary | |
void |
addUser(java.lang.String userId)
Adds use. |
void |
deleteUser(java.lang.String userId)
Deletes user (removes also permissions) |
java.util.HashSet |
getSupportedAttributes()
Returns supported property names |
java.lang.String[] |
getUserIds()
Returns string array containing all user ids from this user store. |
UserProperty[] |
getUserProperties(java.lang.String userId,
java.util.HashSet supported)
Returns user properties |
byte[] |
getUserProperty(java.lang.String userId,
java.lang.String key,
java.util.HashSet supported)
Return user property |
java.util.HashSet |
getUsers(java.util.HashSet supported)
Return users. |
java.util.HashSet |
getUsers(UserProperty[] filter)
Returns iterator containing users which correspond to a given filter. |
boolean |
hasUser(java.lang.String userId,
UserProperty[] filter)
Determines whether user with given name and properties is present in the user store or not. |
void |
removeUserProperty(java.lang.String userId,
java.lang.String key)
Removes user property |
java.util.HashSet |
setUserProperties(java.lang.String userId,
UserProperty[] properties)
Set user properties |
boolean |
setUserProperty(java.lang.String userId,
java.lang.String key,
byte[] value)
Sets user property |
Methods inherited from interface org.idoox.security.pstore.KeyStore |
containsAlias, deleteEntry, getAlias, getAliasEntries, getAliases, getCertificateChain, getKey, getKeyEntry, isKeyEntry, setCertificateEntry, setKeyEntry, setKeyEntry, setKeyStoreSoure |
Method Detail |
public java.util.HashSet getUsers(java.util.HashSet supported)
supported
- set of supported property types
public java.util.HashSet getUsers(UserProperty[] filter)
The property can be either requested to be present, in which case the
map should contain only the property key and the associated value must
be set to null
or it can be requested that particular
property must have certain value, in which case both key and value in
the properties map must be set to non-null values.
filter
- property objects array
public java.lang.String[] getUserIds()
public void deleteUser(java.lang.String userId) throws UserStoreException
userId
- - user ID
UserStoreException
public void addUser(java.lang.String userId) throws UserStoreException
userId
- - user ID
UserStoreException
with no properties)
public UserProperty[] getUserProperties(java.lang.String userId, java.util.HashSet supported) throws UserStoreException
userId
- - user IDsupported
- set of names of supported property types which are supported
by caller
UserStoreException
public byte[] getUserProperty(java.lang.String userId, java.lang.String key, java.util.HashSet supported) throws UserStoreException
userId
- - user IDkey
- - property namesupported
- set of names of supported property types which are supported
UserStoreException
public java.util.HashSet setUserProperties(java.lang.String userId, UserProperty[] properties) throws UserStoreException
userId
- - user IDproperties
- - an array of user properties
UserStoreException
public boolean setUserProperty(java.lang.String userId, java.lang.String key, byte[] value) throws UserStoreException
userId
- - user IDkey
- - property namevalue
- - property value as an array of bytes
false
if server does not support requested property type
UserStoreException
public void removeUserProperty(java.lang.String userId, java.lang.String key) throws UserStoreException
userId
- - user IDkey
- - property name
UserStoreException
public java.util.HashSet getSupportedAttributes()
public boolean hasUser(java.lang.String userId, UserProperty[] filter)
The property can be either requested to be present, in which case the
map should contain only the property key and the associated value must
be set to null
or it can be requested that particular
property must have certain value, in which case both key and value in
the properties map must be set to non-null values.
userId
- name of the userfilter
- array of Property objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |