Class LDAPUtil
java.lang.Object
com.liferay.portal.security.ldap.util.LDAPUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringescapeCharacters(String attribute) Deprecated.static ObjectgetAttributeObject(Attributes attributes, String id) static ObjectgetAttributeObject(Attributes attributes, String id, Object defaultValue) static ObjectgetAttributeObject(Attributes attributes, Properties properties, String key) static ObjectgetAttributeObject(Attributes attributes, Properties properties, String key, Object defaultValue) static StringgetAttributeString(Attributes attributes, String id) static StringgetAttributeString(Attributes attributes, String id, String defaultValue) static StringgetAttributeString(Attributes attributes, Properties properties, String key) static StringgetAttributeString(Attributes attributes, Properties properties, String key, String defaultValue) static String[]getAttributeStringArray(Attributes attributes, String id) static String[]getAttributeStringArray(Attributes attributes, Properties properties, String key) static SafeLdapFilterTemplategetAuthSearchSafeLdapFilterTemplate(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) static SafeLdapNamegetBaseDNSafeLdapName(LDAPServerConfiguration ldapServerConfiguration) static StringgetFullProviderURL(String baseURL, String baseDN) static SafeLdapNamegetGroupsDNSafeLdapName(LDAPServerConfiguration ldapServerConfiguration) static SafeLdapFiltergetGroupSearchSafeLdapFilter(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) static SafeLdapNamegetUsersDNSafeLdapName(LDAPServerConfiguration ldapServerConfiguration) static SafeLdapFiltergetUserSearchSafeLdapFilter(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) static Date
-
Constructor Details
-
LDAPUtil
public LDAPUtil()
-
-
Method Details
-
escapeCharacters
Deprecated.As of Mueller (7.2.x), replaced bySafeLdapFilter -
getAttributeObject
public static Object getAttributeObject(Attributes attributes, Properties properties, String key) throws NamingException - Throws:
NamingException
-
getAttributeObject
public static Object getAttributeObject(Attributes attributes, Properties properties, String key, Object defaultValue) throws NamingException - Throws:
NamingException
-
getAttributeObject
- Throws:
NamingException
-
getAttributeObject
public static Object getAttributeObject(Attributes attributes, String id, Object defaultValue) throws NamingException - Throws:
NamingException
-
getAttributeString
public static String getAttributeString(Attributes attributes, Properties properties, String key) throws NamingException - Throws:
NamingException
-
getAttributeString
public static String getAttributeString(Attributes attributes, Properties properties, String key, String defaultValue) throws NamingException - Throws:
NamingException
-
getAttributeString
- Throws:
NamingException
-
getAttributeString
public static String getAttributeString(Attributes attributes, String id, String defaultValue) throws NamingException - Throws:
NamingException
-
getAttributeStringArray
public static String[] getAttributeStringArray(Attributes attributes, Properties properties, String key) throws NamingException - Throws:
NamingException
-
getAttributeStringArray
public static String[] getAttributeStringArray(Attributes attributes, String id) throws NamingException - Throws:
NamingException
-
getAuthSearchSafeLdapFilterTemplate
public static SafeLdapFilterTemplate getAuthSearchSafeLdapFilterTemplate(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) throws LDAPFilterException - Throws:
LDAPFilterException
-
getBaseDNSafeLdapName
public static SafeLdapName getBaseDNSafeLdapName(LDAPServerConfiguration ldapServerConfiguration) throws InvalidNameException - Throws:
InvalidNameException
-
getFullProviderURL
-
getGroupsDNSafeLdapName
public static SafeLdapName getGroupsDNSafeLdapName(LDAPServerConfiguration ldapServerConfiguration) throws InvalidNameException - Throws:
InvalidNameException
-
getGroupSearchSafeLdapFilter
public static SafeLdapFilter getGroupSearchSafeLdapFilter(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) throws LDAPFilterException - Throws:
LDAPFilterException
-
getUsersDNSafeLdapName
public static SafeLdapName getUsersDNSafeLdapName(LDAPServerConfiguration ldapServerConfiguration) throws InvalidNameException - Throws:
InvalidNameException
-
getUserSearchSafeLdapFilter
public static SafeLdapFilter getUserSearchSafeLdapFilter(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) throws LDAPFilterException - Throws:
LDAPFilterException
-
parseDate
- Throws:
Exception
-
SafeLdapFilter