public class AuthSession
extends java.lang.Object
| Constructor and Description | 
|---|
AuthSession()
Construct an AuthSession 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
authenticate(javax.servlet.http.HttpServletRequest request,
            java.lang.String username,
            java.lang.String password)
determine if the credentials for this session are valid by
 authenticating them using the authService configured for this session. 
 | 
java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> | 
getAttributes(java.lang.String foruser)
Get attributes describing a user or group 
 | 
java.lang.String[] | 
getGroups(java.lang.String logInUserName,
         java.lang.String logInUserPassword,
         java.lang.String userDN)
Get the all groups in which the given userDN is 
 | 
java.lang.String | 
getMessage()
Get the message associated with authenticating this session. 
 | 
java.lang.String | 
getPrincipals(java.lang.String user,
             java.lang.String password)
Get all groups and users from authentication scheme. 
 | 
javax.servlet.http.HttpSession | 
getSessions()
Get the new session 
 | 
public AuthSession()
            throws java.lang.InstantiationException,
                   java.lang.IllegalAccessException,
                   java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionpublic javax.servlet.http.HttpSession getSessions()
public boolean authenticate(javax.servlet.http.HttpServletRequest request,
                            java.lang.String username,
                            java.lang.String password)
request - the request made from the clientusername - the username entered when loginpassword - the password entered when loginpublic java.lang.String getMessage()
public java.lang.String getPrincipals(java.lang.String user,
                                      java.lang.String password)
                               throws java.net.ConnectException
user - the user which requests the informationpassword - the user's passwordjava.net.ConnectExceptionpublic java.util.HashMap<java.lang.String,java.util.Vector<java.lang.String>> getAttributes(java.lang.String foruser)
                                                                                     throws java.net.ConnectException
foruser - the user for which the attribute list is requestedjava.net.ConnectExceptionpublic java.lang.String[] getGroups(java.lang.String logInUserName,
                                    java.lang.String logInUserPassword,
                                    java.lang.String userDN)
                             throws java.lang.Exception
logInUserName - it can be nulllogInUserPassword - it can be nulluserDN - java.lang.ExceptionCopyright © 2020 Regents of the University of California. All Rights Reserved.