Interface Converter
- All Known Implementing Classes:
GenericConverter
public interface Converter
Converts a string name into a Name, for use with spring-ldap.
-
Method Summary
Modifier and TypeMethodDescriptionEscapes and converts a DN into a Name, for use with LDAP through JNDI.getName
(String attributeName, String objectName, CrowdLdapName baseDN) Returns a Name escaped for JNDI and LDAP, for use with a directory.
-
Method Details
-
getName
Escapes and converts a DN into a Name, for use with LDAP through JNDI.- Throws:
LdapNameFormatException
-
getName
CrowdLdapName getName(String attributeName, String objectName, CrowdLdapName baseDN) throws LdapNameFormatException Returns a Name escaped for JNDI and LDAP, for use with a directory. Used when building a DN from an object name plus directory configuration information Given: attributeName: "cn" objectName: "Smith, John" baseDN: "dc=example, dc=org" It will return a Name that represents the DN: "cn=Smith\, John, dc=example, dc=org"- Parameters:
baseDN
- A correctly-escaped DN. May be empty or null.- Throws:
LdapNameFormatException
-