Liferay 6.1.2-ce-ga3

com.liferay.portal.security.auth
Class LDAPAuth

java.lang.Object
  extended by com.liferay.portal.security.auth.LDAPAuth
All Implemented Interfaces:
Authenticator

public class LDAPAuth
extends Object
implements Authenticator


Field Summary
static String AUTH_METHOD_BIND
           
static String AUTH_METHOD_PASSWORD_COMPARE
           
static String RESULT_PASSWORD_EXP_WARNING
           
static String RESULT_PASSWORD_RESET
           
 
Fields inherited from interface com.liferay.portal.security.auth.Authenticator
DNE, FAILURE, SKIP_LIFERAY_CHECK, SUCCESS
 
Constructor Summary
LDAPAuth()
           
 
Method Summary
protected  LDAPAuthResult authenticate(LdapContext ctx, long companyId, Attributes attributes, String userDN, String password)
           
protected  int authenticate(long companyId, long ldapServerId, String emailAddress, String screenName, long userId, String password)
           
protected  int authenticate(long companyId, String emailAddress, String screenName, long userId, String password)
           
 int authenticateByEmailAddress(long companyId, String emailAddress, String password, Map<String,String[]> headerMap, Map<String,String[]> parameterMap)
           
 int authenticateByScreenName(long companyId, String screenName, String password, Map<String,String[]> headerMap, Map<String,String[]> parameterMap)
           
 int authenticateByUserId(long companyId, long userId, String password, Map<String,String[]> headerMap, Map<String,String[]> parameterMap)
           
protected  int authenticateOmniadmin(long companyId, String emailAddress, String screenName, long userId)
           
protected  int authenticateRequired(long companyId, long userId, String emailAddress, String screenName, boolean allowOmniadmin, int failureCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_METHOD_BIND

public static final String AUTH_METHOD_BIND
See Also:
Constant Field Values

AUTH_METHOD_PASSWORD_COMPARE

public static final String AUTH_METHOD_PASSWORD_COMPARE
See Also:
Constant Field Values

RESULT_PASSWORD_EXP_WARNING

public static final String RESULT_PASSWORD_EXP_WARNING
See Also:
Constant Field Values

RESULT_PASSWORD_RESET

public static final String RESULT_PASSWORD_RESET
See Also:
Constant Field Values
Constructor Detail

LDAPAuth

public LDAPAuth()
Method Detail

authenticateByEmailAddress

public int authenticateByEmailAddress(long companyId,
                                      String emailAddress,
                                      String password,
                                      Map<String,String[]> headerMap,
                                      Map<String,String[]> parameterMap)
                               throws AuthException
Specified by:
authenticateByEmailAddress in interface Authenticator
Throws:
AuthException

authenticateByScreenName

public int authenticateByScreenName(long companyId,
                                    String screenName,
                                    String password,
                                    Map<String,String[]> headerMap,
                                    Map<String,String[]> parameterMap)
                             throws AuthException
Specified by:
authenticateByScreenName in interface Authenticator
Throws:
AuthException

authenticateByUserId

public int authenticateByUserId(long companyId,
                                long userId,
                                String password,
                                Map<String,String[]> headerMap,
                                Map<String,String[]> parameterMap)
                         throws AuthException
Specified by:
authenticateByUserId in interface Authenticator
Throws:
AuthException

authenticate

protected LDAPAuthResult authenticate(LdapContext ctx,
                                      long companyId,
                                      Attributes attributes,
                                      String userDN,
                                      String password)
                               throws Exception
Throws:
Exception

authenticate

protected int authenticate(long companyId,
                           long ldapServerId,
                           String emailAddress,
                           String screenName,
                           long userId,
                           String password)
                    throws Exception
Throws:
Exception

authenticate

protected int authenticate(long companyId,
                           String emailAddress,
                           String screenName,
                           long userId,
                           String password)
                    throws Exception
Throws:
Exception

authenticateOmniadmin

protected int authenticateOmniadmin(long companyId,
                                    String emailAddress,
                                    String screenName,
                                    long userId)
                             throws Exception
Throws:
Exception

authenticateRequired

protected int authenticateRequired(long companyId,
                                   long userId,
                                   String emailAddress,
                                   String screenName,
                                   boolean allowOmniadmin,
                                   int failureCode)
                            throws Exception
Throws:
Exception

Liferay 6.1.2-ce-ga3