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
 

Constructor Detail

AuthSession

public AuthSession()
            throws java.lang.Exception
Construct an AuthSession
Method Detail

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 client
username - the username entered when login
password - 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.