public class LDAPOperationManager extends Object
This class provides a set of operations to manage LDAP trees.
Constructor and Description |
---|
LDAPOperationManager(LDAPIdentityStoreConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String dn,
Attribute attribute)
Adds the given
Attribute instance using the given DN. |
boolean |
authenticate(String dn,
String password)
Performs a simple authentication using the ginve DN and password to bind to the authentication context.
|
void |
createSubContext(String name,
Attributes attributes) |
String |
decodeEntryUUID(Object entryUUID) |
Attributes |
getAttributes(String entryUUID,
String baseDN,
LDAPMappingConfiguration mappingConfiguration) |
String |
getFilterById(String baseDN,
String id) |
SearchResult |
lookupById(String baseDN,
String id,
LDAPMappingConfiguration mappingConfiguration) |
void |
modifyAttribute(String dn,
Attribute attribute)
Modifies the given
Attribute instance using the given DN. |
void |
modifyAttributes(String dn,
NamingEnumeration<Attribute> attributes)
Modifies the given
Attribute instances using the given DN. |
void |
removeAttribute(String dn,
Attribute attribute)
Removes the given
Attribute instance using the given DN. |
void |
removeEntryById(String baseDN,
String id,
LDAPMappingConfiguration mappingConfiguration)
Searches the LDAP tree.
|
List<SearchResult> |
search(String baseDN,
String filter,
LDAPMappingConfiguration mappingConfiguration) |
<V extends IdentityType> |
searchPaginated(String baseDN,
String filter,
LDAPMappingConfiguration mappingConfiguration,
IdentityQuery<V> identityQuery) |
public LDAPOperationManager(LDAPIdentityStoreConfiguration config) throws NamingException
NamingException
public void modifyAttribute(String dn, Attribute attribute)
Modifies the given Attribute
instance using the given DN. This method performs a REPLACE_ATTRIBUTE
operation.
dn
- attribute
- public void modifyAttributes(String dn, NamingEnumeration<Attribute> attributes)
Modifies the given Attribute
instances using the given DN. This method performs a REPLACE_ATTRIBUTE
operation.
dn
- attributes
- public void removeAttribute(String dn, Attribute attribute)
Removes the given Attribute
instance using the given DN. This method performs a REMOVE_ATTRIBUTE
operation.
dn
- attribute
- public void addAttribute(String dn, Attribute attribute)
Adds the given Attribute
instance using the given DN. This method performs a ADD_ATTRIBUTE operation.
dn
- attribute
- public void removeEntryById(String baseDN, String id, LDAPMappingConfiguration mappingConfiguration)
Searches the LDAP tree.
baseDN
- id
- public List<SearchResult> search(String baseDN, String filter, LDAPMappingConfiguration mappingConfiguration) throws NamingException
NamingException
public <V extends IdentityType> List<SearchResult> searchPaginated(String baseDN, String filter, LDAPMappingConfiguration mappingConfiguration, IdentityQuery<V> identityQuery) throws NamingException
NamingException
public SearchResult lookupById(String baseDN, String id, LDAPMappingConfiguration mappingConfiguration)
public boolean authenticate(String dn, String password)
Performs a simple authentication using the ginve DN and password to bind to the authentication context.
dn
- password
- public void createSubContext(String name, Attributes attributes)
public Attributes getAttributes(String entryUUID, String baseDN, LDAPMappingConfiguration mappingConfiguration)
Copyright © 2018 JBoss by Red Hat. All rights reserved.