Class LDAPUtil
java.lang.Object
com.liferay.portal.security.ldap.util.LDAPUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
escapeCharacters
(String attribute) Deprecated.static Object
getAttributeObject
(Attributes attributes, String id) static Object
getAttributeObject
(Attributes attributes, String id, Object defaultValue) static Object
getAttributeObject
(Attributes attributes, Properties properties, String key) static Object
getAttributeObject
(Attributes attributes, Properties properties, String key, Object defaultValue) static String
getAttributeString
(Attributes attributes, String id) static String
getAttributeString
(Attributes attributes, String id, String defaultValue) static String
getAttributeString
(Attributes attributes, Properties properties, String key) static String
getAttributeString
(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 SafeLdapFilterTemplate
getAuthSearchSafeLdapFilterTemplate
(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) static SafeLdapName
getBaseDNSafeLdapName
(LDAPServerConfiguration ldapServerConfiguration) static String
getFullProviderURL
(String baseURL, String baseDN) static SafeLdapName
getGroupsDNSafeLdapName
(LDAPServerConfiguration ldapServerConfiguration) static SafeLdapFilter
getGroupSearchSafeLdapFilter
(LDAPServerConfiguration ldapServerConfiguration, LDAPFilterValidator ldapFilterValidator) static SafeLdapName
getUsersDNSafeLdapName
(LDAPServerConfiguration ldapServerConfiguration) static SafeLdapFilter
getUserSearchSafeLdapFilter
(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