public class DefaultDnFactory extends Object implements DnFactory
Constructor and Description |
---|
DefaultDnFactory(SchemaManager schemaManager,
int cacheSize)
Instantiates a new default Dn factory.
|
Modifier and Type | Method and Description |
---|---|
Dn |
create(String... upRdns)
Creates a Dn from user provided RDNs.
|
Dn |
create(String dn)
Creates a Dn form a user provided Dn.
|
public DefaultDnFactory(SchemaManager schemaManager, int cacheSize)
schemaManager
- The SchemaManager instancecacheSize
- The cache size used to store DNspublic Dn create(String dn) throws LdapInvalidDnException
create
in interface DnFactory
dn
- the user provided DnLdapInvalidDnException
- if the string isn't a valid Dnpublic Dn create(String... upRdns) throws LdapInvalidDnException
create
in interface DnFactory
upRdns
- the user provided RDNsLdapInvalidDnException
- if one of the strings isn't a valid RdnCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.