public class ConcreteNameComponentNormalizer extends Object implements NameComponentNormalizer
Constructor and Description |
---|
ConcreteNameComponentNormalizer(SchemaManager schemaManager)
Creates a Dn Name component Normalizer which uses the bootstrap
registries to find the appropriate normalizer for the attribute of the
name component with which to normalize the name component value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDefined(String id)
Checks to see if an attribute name/oid is defined.
|
Object |
normalizeByName(String name,
byte[] value)
Normalizes an attribute's value given the name of the attribute - short
names like 'cn' as well as 'commonName' should work here.
|
Object |
normalizeByName(String name,
String value)
Normalizes an attribute's value given the name of the attribute - short
names like 'cn' as well as 'commonName' should work here.
|
Object |
normalizeByOid(String oid,
byte[] value)
Normalizes an attribute's value given the OID of the attribute.
|
Object |
normalizeByOid(String oid,
String value)
Normalizes an attribute's value given the OID of the attribute.
|
String |
normalizeName(String attributeName)
Normalizes the attribute name/alias to use the OID for it instead.
|
public ConcreteNameComponentNormalizer(SchemaManager schemaManager)
schemaManager
- the schemaManager used to dynamically resolve Normalizerspublic Object normalizeByName(String name, String value) throws LdapException
normalizeByName
in interface NameComponentNormalizer
name
- the name of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issuepublic Object normalizeByName(String name, byte[] value) throws LdapException
normalizeByName
in interface NameComponentNormalizer
name
- the name of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issuepublic Object normalizeByOid(String oid, String value) throws LdapException
normalizeByOid
in interface NameComponentNormalizer
oid
- the OID of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issuepublic Object normalizeByOid(String oid, byte[] value) throws LdapException
normalizeByOid
in interface NameComponentNormalizer
oid
- the OID of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issuepublic boolean isDefined(String id)
NameComponentNormalizer
isDefined
in interface NameComponentNormalizer
id
- the name/oid of the attribute to see if it is definedNameComponentNormalizer.isDefined(String)
public String normalizeName(String attributeName) throws LdapException
NameComponentNormalizer
normalizeName
in interface NameComponentNormalizer
attributeName
- the name or OID of the attributeTypeLdapException
- if the attributeName is not recognized as a valid aliasCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.