public interface NameComponentNormalizer
Modifier and Type | Method and Description |
---|---|
boolean |
isDefined(String id)
Checks to see if an attribute name/oid is defined.
|
Object |
normalizeByName(AttributeType attributeType,
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 |
normalizeByName(String attributeName,
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 attributeName,
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 attributeOid,
byte[] value)
Normalizes an attribute's value given the OID of the attribute.
|
Object |
normalizeByOid(String attributeOid,
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.
|
boolean isDefined(String id)
id
- the name/oid of the attribute to see if it is definedString normalizeName(String attributeName) throws LdapException
attributeName
- the name or OID of the attributeTypeLdapException
- if the attributeName is not recognized as a valid aliasObject normalizeByName(String attributeName, String value) throws LdapException
attributeName
- the name of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issueObject normalizeByName(AttributeType attributeType, String value) throws LdapException
attributeType
- the attributeTypevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issueObject normalizeByName(String attributeName, byte[] value) throws LdapException
attributeName
- the name of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issueObject normalizeByOid(String attributeOid, String value) throws LdapException
attributeOid
- the OID of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issueObject normalizeByOid(String attributeOid, byte[] value) throws LdapException
attributeOid
- the OID of the attributevalue
- the value of the attribute to normalizeLdapException
- if there is a recognition problem or a syntax issueCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.