| Modifier and Type | Method and Description |
|---|---|
static Schema |
createSchema(ConnectionFactory factory)
Creates a new schema.
|
static Schema |
createSchema(ConnectionFactory factory,
String entryDn)
Creates a new schema.
|
static Schema |
createSchema(InputStream is)
Creates a new schema.
|
static Schema |
createSchema(LdapEntry schemaEntry)
Creates a new schema.
|
protected static LdapEntry |
getLdapEntry(ConnectionFactory factory,
String dn,
String filter,
String[] retAttrs)
Searches for the supplied dn and returns its ldap entry.
|
public static Schema createSchema(InputStream is) throws IOException
is - containing the schema ldifIOException - if an error occurs reading the input streampublic static Schema createSchema(ConnectionFactory factory) throws LdapException
factory - to obtain an LDAP connection fromLdapException - if the search failspublic static Schema createSchema(ConnectionFactory factory, String entryDn) throws LdapException
factory - to obtain an LDAP connection fromentryDn - the subschema entryLdapException - if the search failspublic static Schema createSchema(LdapEntry schemaEntry)
schemaEntry - containing the schemaprotected static LdapEntry getLdapEntry(ConnectionFactory factory, String dn, String filter, String[] retAttrs) throws LdapException
factory - to obtain an LDAP connection fromdn - to search forfilter - search filterretAttrs - attributes to returnLdapException - if the search failsCopyright © 2023. All rights reserved.