com.atlassian.crowd.directory.ldap.name
Interface Converter

All Known Implementing Classes:
GenericConverter

public interface Converter

Converts a string name into a Name, for use with spring-ldap.


Method Summary
 LdapName getName(String dn)
          Escapes and converts a DN into a Name, for use with LDAP through JNDI.
 LdapName getName(String attributeName, String objectName, LdapName baseDN)
          Returns a Name escaped for JNDI and LDAP, for use with a directory.
 

Method Detail

getName

LdapName getName(String dn)
                 throws InvalidNameException
Escapes and converts a DN into a Name, for use with LDAP through JNDI.

Parameters:
dn -
Returns:
Throws:
InvalidNameException

getName

LdapName getName(String attributeName,
                 String objectName,
                 LdapName baseDN)
                 throws InvalidNameException
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:
attributeName -
objectName -
baseDN - A correctly-escaped DN. May be empty or null.
Returns:
Throws:
InvalidNameException


Copyright © 2013 Atlassian. All Rights Reserved.