public class FedletDataStoreProvider extends Object implements DataStoreProvider
FedletDataStoreProvider
is an implementation of
DataStoreProvider
for Fedlet deployment. The implemetation
performs no operation on those methods.DataStoreProvider
Constructor and Description |
---|
FedletDataStoreProvider()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAttribute(String userID,
String attrName)
Returns values for a given attribute.
|
Map<String,Set<String>> |
getAttributes(String userID,
Set<String> attrNames)
Returns attribute values for a user.
|
byte[][] |
getBinaryAttribute(String userID,
String attrName)
Returns values for a given attribute.
|
Map<String,byte[][]> |
getBinaryAttributes(String userID,
Set<String> attrNames)
Returns attribute values for a user.
|
String |
getUserID(String orgDN,
Map<String,Set<String>> avPairs)
Returns user matching the search criteria.
|
void |
init(String componentName)
Initializes the provider.
|
boolean |
isUserExists(String userID)
Checks if a given user exists.
|
void |
setAttributes(String userID,
Map<String,Set<String>> attrMap)
Sets attributes for a user.
|
public void init(String componentName) throws DataStoreProviderException
init
in interface DataStoreProvider
componentName
- name of the component.DataStoreProviderException
- if an error occurred during
initialization.public Set<String> getAttribute(String userID, String attrName) throws DataStoreProviderException
getAttribute
in interface DataStoreProvider
userID
- Universal identifier of the user.attrName
- Name of the attribute whose value to be retrieved.DataStoreProviderException
- if unable to retrieve the attribute.public Map<String,Set<String>> getAttributes(String userID, Set<String> attrNames) throws DataStoreProviderException
getAttributes
in interface DataStoreProvider
userID
- Universal identifier of the user.attrNames
- Set of attributes whose values are to be retrieved.DataStoreProviderException
- if unable to retrieve the values.public byte[][] getBinaryAttribute(String userID, String attrName) throws DataStoreProviderException
getBinaryAttribute
in interface DataStoreProvider
userID
- Universal identifier of the user.attrName
- Name of the attribute whose value to be retrieved.DataStoreProviderException
- if unable to retrieve the attribute.public Map<String,byte[][]> getBinaryAttributes(String userID, Set<String> attrNames) throws DataStoreProviderException
getBinaryAttributes
in interface DataStoreProvider
userID
- Universal identifier of the user.attrNames
- Set of attributes whose values are to be retrieved.DataStoreProviderException
- if unable to retrieve the values.public void setAttributes(String userID, Map<String,Set<String>> attrMap) throws DataStoreProviderException
setAttributes
in interface DataStoreProvider
userID
- Universal identifier of the user.attrMap
- Map of attributes to be set, key is the
attribute name and value is a Set containing the attribute values.DataStoreProviderException
- if unable to set values.public String getUserID(String orgDN, Map<String,Set<String>> avPairs) throws DataStoreProviderException
getUserID
in interface DataStoreProvider
orgDN
- The realm to search the user. If null,
searches the root realm.avPairs
- Attribute key/value pairs that will be used for
searching the user. Key is the attribute name, value
is a Set containing attribute value(s).DataStoreProviderException
- if error occurs during search or
multiple matching users found.public boolean isUserExists(String userID) throws DataStoreProviderException
isUserExists
in interface DataStoreProvider
userID
- Universal identifier of the user to be checked.true
if the user exists.DataStoreProviderException
- if an error occurred.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.