public class DefaultDnFactory extends Object implements DnFactory
| Modifier and Type | Field and Description |
|---|---|
private com.github.benmanes.caffeine.cache.Cache<String,Dn> |
dnCache
The cache for DNs
|
private boolean |
enableStats
Flag to enable stats
|
private int |
hitCount |
private static org.slf4j.Logger |
LOG |
private int |
missCount |
private SchemaManager |
schemaManager
The schema manager
|
| 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.
|
private static final org.slf4j.Logger LOG
private SchemaManager schemaManager
private boolean enableStats
private int hitCount
private int missCount
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 DnFactorydn - the user provided DnLdapInvalidDnException - if the string isn't a valid Dnpublic Dn create(String... upRdns) throws LdapInvalidDnException
create in interface DnFactoryupRdns - the user provided RDNsLdapInvalidDnException - if one of the strings isn't a valid RdnCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.