public interface UserStoreProvider
Modifier and Type | Interface and Description |
---|---|
static interface |
UserStoreProvider.GroupEntry |
static interface |
UserStoreProvider.ResultSet<T> |
static interface |
UserStoreProvider.UserEntry |
Modifier and Type | Method and Description |
---|---|
void |
addAttributeValues(String uid,
Attributes attributes,
boolean replace)
Add the given attribute values to the user entry.
|
void |
addUsersToGroup(Set<String> uids,
String group)
Add the set of users to the specified group.
|
void |
addUserToGroups(String uid,
Set<String> groups)
Add the specified user to the set of groups.
|
UserStoreProvider.UserEntry |
authenticate(CallbackHandler cbh,
boolean isGetGroups,
Set<String> attributeNames)
Authenticate using credentials supplied in the given CallbackHandler.
|
void |
changePassword(String uid,
char[] oldPwd,
char[] newPwd)
Change the password for the specified user.
|
String |
createGroup(String groupName)
Create a new group.
|
String |
createUser(String name,
char[] pwd,
Attributes attributes)
Create a new user and return the unique ID assigned.
|
void |
deleteGroup(String uid)
Delete a group.
|
void |
deleteUser(String uid)
Remove the specified user.
|
String |
getStoreId()
Get the unique store ID for this user store.
|
boolean |
isAuthenticationEnabled()
Determine if authentication is supported and enabled by this USP.
|
boolean |
isUserLookupEnabled()
Determine if user lookup is supported and enabled by this USP.
|
boolean |
isUserUpdateEnabled()
Determine if user update (CRUD operations) is supported and enabled by this USP.
|
UserStoreProvider.GroupEntry |
lookupGroupByUid(String uid)
Get the GroupEntry for the specified group.
|
UserStoreProvider.ResultSet<UserStoreProvider.GroupEntry> |
lookupGroupsByName(String name)
Get the GroupEntry(s) for the specified group name.
|
UserStoreProvider.UserEntry |
lookupUserByUid(String uid,
boolean isGetGroups,
Set<String> attributeNames)
Lookup a user by unique ID.
|
UserStoreProvider.ResultSet<UserStoreProvider.UserEntry> |
lookupUsersByName(String name,
boolean isGetGroups,
Set<String> attributeNames)
Lookup users by name.
|
void |
removeAttributes(String uid,
Set<String> attributeNames)
Remove the given attributes from the user entry.
|
void |
removeAttributeValues(String uid,
Attributes attributes)
Remove the given attribute values from the user entry.
|
void |
removeUserFromGroups(String uid,
Set<String> groups)
Remove the specified user from the set of groups.
|
void |
removeUsersFromGroup(Set<String> uids,
String group)
Remove the set of users from the specified group.
|
String getStoreId()
boolean isAuthenticationEnabled()
boolean isUserLookupEnabled()
boolean isUserUpdateEnabled()
UserStoreProvider.UserEntry authenticate(CallbackHandler cbh, boolean isGetGroups, Set<String> attributeNames) throws LoginException
cbh
- isGetGroups
- Whether or not to return the user's groups.attributeNames
- Names of attributes to return, or null for no attributes.LoginException
UserStoreProvider.ResultSet<UserStoreProvider.UserEntry> lookupUsersByName(String name, boolean isGetGroups, Set<String> attributeNames) throws UserStoreException
name
- The user name to searech for.isGetGroups
- Whether or not to return users' groups.attributeNames
- Names of attributes to return, or null for no attributes.UserStoreException
UserStoreProvider.UserEntry lookupUserByUid(String uid, boolean isGetGroups, Set<String> attributeNames) throws UserStoreException
uid
- isGetGroups
- Whether or not to return users' groups.attributeNames
- Names of attributes to return, or null for no attributes.UserStoreException
UserStoreProvider.ResultSet<UserStoreProvider.GroupEntry> lookupGroupsByName(String name) throws UserStoreException
name
- The name to search on, may include wildcards (e.g., a*, *b, etc.)UserStoreException
UserStoreProvider.GroupEntry lookupGroupByUid(String uid) throws UserStoreException
uid
- The UID of the group to return.UserStoreException
String createUser(String name, char[] pwd, Attributes attributes) throws UserStoreException
name
- Name of the new user entry.pwd
- Password to set on the new entry.attributes
- Attributes to set on the entry (or null if none).UserStoreException
void deleteUser(String uid) throws UserStoreException
uid
- UID of the user to remove.UserStoreException
void changePassword(String uid, char[] oldPwd, char[] newPwd) throws UserStoreException
uid
- UID of user whose password should be changed.oldPwd
- Old password, if verification desired, or null. If provided, must be valid.newPwd
- New password to set.UserStoreException
void addAttributeValues(String uid, Attributes attributes, boolean replace) throws UserStoreException
uid
- attributes
- replace
- UserStoreException
void removeAttributeValues(String uid, Attributes attributes) throws UserStoreException
uid
- attributes
- UserStoreException
void removeAttributes(String uid, Set<String> attributeNames) throws UserStoreException
uid
- attributeNames
- UserStoreException
String createGroup(String groupName) throws UserStoreException
groupName
- UserStoreException
void deleteGroup(String uid) throws UserStoreException
uid
- UID of group to delete.UserStoreException
void addUserToGroups(String uid, Set<String> groups) throws UserStoreException
uid
- groups
- UserStoreException
void removeUserFromGroups(String uid, Set<String> groups) throws UserStoreException
uid
- groups
- UserStoreException
void addUsersToGroup(Set<String> uids, String group) throws UserStoreException
uids
- group
- UserStoreException
void removeUsersFromGroup(Set<String> uids, String group) throws UserStoreException
uids
- group
- UserStoreException
Copyright © 2018. All rights reserved.