public class LDAPJNDIUtils extends Object
Modifier and Type | Method and Description |
---|---|
protected static LDAPEntryAttribute |
buildAttribute(Attribute attribute,
LDAPSchemaAware schemaCache) |
static LDAPEntryAttributeTypeDefinition |
buildAttributeTypeDefinition(Attributes attributes) |
static LDAPEntry |
buildEntry(String entryDN,
Attributes attributes) |
static LDAPEntry |
buildEntry(String entryDN,
Attributes attributes,
LDAPSchemaAware schemaCache) |
static LDAPEntryObjectClassDefinition |
buildObjectClassDefinition(Attributes attributes) |
static Control[] |
buildRequestControls(LDAPSearchControls controls,
byte[] cookie) |
static SearchControls |
buildSearchControls(LDAPSearchControls controls) |
static boolean |
containsDnValue(String dn,
List<Object> values)
Whether the list of values contains a given DN.
|
public static LDAPEntry buildEntry(String entryDN, Attributes attributes) throws LDAPException
entryDN
- Distinguished Nameattributes
- AttributesLDAPException
public static LDAPEntry buildEntry(String entryDN, Attributes attributes, LDAPSchemaAware schemaCache) throws LDAPException
entryDN
- Distinguished Nameattributes
- AttributesschemaCache
- Schema cache, if not null, then the structure of the entry will be based on the LDAP schema.LDAPException
protected static LDAPEntryAttribute buildAttribute(Attribute attribute, LDAPSchemaAware schemaCache) throws LDAPException
attribute
- AttributesschemaCache
- If not null, then the structure of the entry will be based on the LDAP schema.LDAPException
public static LDAPEntryObjectClassDefinition buildObjectClassDefinition(Attributes attributes) throws LDAPException
LDAPException
public static LDAPEntryAttributeTypeDefinition buildAttributeTypeDefinition(Attributes attributes) throws LDAPException
LDAPException
public static Control[] buildRequestControls(LDAPSearchControls controls, byte[] cookie) throws LDAPException
controls
- LDAP Search Controlscookie
- cookieLDAPException
public static SearchControls buildSearchControls(LDAPSearchControls controls)
controls
- LDAP Search Controlspublic static boolean containsDnValue(String dn, List<Object> values)
dn
- Distinguished Namevalues
- List of valuesCopyright © 2010–2020. All rights reserved.