edu.ucsb.nceas.metacat
Class AuthSession
java.lang.Object
|
+--edu.ucsb.nceas.metacat.AuthSession
- public class AuthSession
- extends java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthSession
public AuthSession()
throws java.lang.Exception
- Construct an AuthSession
authenticate
public 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.
- Parameters:
request
- the request made from the clientusername
- the username entered when loginpassword
- the password entered when login
getMessage
public java.lang.String getMessage()
- Get the message associated with authenticating this session. The
message is formatted in XML.
Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.