public interface DataStoreProvider
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAttribute(String userID,
String attrName)
Gets user attribute.
|
Map<String,Set<String>> |
getAttributes(String userID,
Set<String> attrNames)
Gets user attributes.
|
byte[][] |
getBinaryAttribute(String userID,
String attrName)
Gets user binary attribute.
|
Map<String,byte[][]> |
getBinaryAttributes(String userID,
Set<String> attrNames)
Gets user binary attributes.
|
String |
getUserID(String orgDN,
Map<String,Set<String>> avPairs)
Searches user.
|
void |
init(String componentName)
Initializes the provider.
|
boolean |
isUserExists(String userID)
Checks if the user exists with a given userid.
|
void |
setAttributes(String userID,
Map<String,Set<String>> attrMap)
Sets user attributes.
|
void init(String componentName) throws DataStoreProviderException
componentName
- Component name, such as saml, saml2, id-ff, disco,
authnsvc, and idpp.DataStoreProviderException
- if an error occurred during
initialization.Set<String> getAttribute(String userID, String attrName) throws DataStoreProviderException
userID
- ID value for the user.attrName
- Name of the attribute whose value to be retrieved.DataStoreProviderException
- if an error occurred.Map<String,Set<String>> getAttributes(String userID, Set<String> attrNames) throws DataStoreProviderException
userID
- ID value for the user.attrNames
- The Set of attribute names.DataStoreProviderException
- if an error occurred.byte[][] getBinaryAttribute(String userID, String attrName) throws DataStoreProviderException
userID
- ID value for the user.attrName
- Name of the attribute whose value to be retrieved.DataStoreProviderException
- if an error occurred.Map<String,byte[][]> getBinaryAttributes(String userID, Set<String> attrNames) throws DataStoreProviderException
userID
- ID value for the user.attrNames
- The Set of attribute names.DataStoreProviderException
- if an error occurred.void setAttributes(String userID, Map<String,Set<String>> attrMap) throws DataStoreProviderException
userID
- ID value for the user.attrMap
- Map of specified attributes to be set. Map key is
the attribute name and value is the attribute value Set.DataStoreProviderException
- if an error occurred.String getUserID(String orgDN, Map<String,Set<String>> avPairs) throws DataStoreProviderException
orgDN
- The organization to search the user.avPairs
- Attribute value pairs that will be used for searching
the user.DataStoreProviderException
- if an error occurred.boolean isUserExists(String userID) throws DataStoreProviderException
userID
- ID of an usertrue
if the user exists; false
otherwise.DataStoreProviderException
- if an error occurred.Copyright © 2010-2018, ForgeRock All Rights Reserved.