|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.AuthSession
public class AuthSession
A Class that implements session tracking for MetaCatServlet users. User's login data are stored in the session object. User authentication is done through a dynamically determined AuthInterface.
| Constructor Summary | |
|---|---|
AuthSession()
Construct an AuthSession |
|
| Method Summary | |
|---|---|
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.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthSession()
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public 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 password
java.net.ConnectException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||