com.ge.research.app.security
Class LoginContext

java.lang.Object
  extended bycom.ge.research.app.security.LoginContext

public class LoginContext
extends java.lang.Object

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:46 $
Author:
garbiras
Created on:
June 5, 2006

Field Summary
protected  java.lang.String AUTHENTICATION_ERROR_KEY
          Resource bundle property key for error message describing situation where an error prevented authentication from occurring
protected  java.lang.String AUTHENTICATION_FAILED_KEY
          Resource bundle property key for error message describing situation where authentication failed
protected  Authenticator authenticator
          Security reader
protected  java.util.Properties props
           
 
Constructor Summary
LoginContext(Authenticator _auth)
          Constructor
 
Method Summary
 Subject login(java.lang.String subjectId, java.lang.String password)
          Returns a subject object with roles if subject id and password matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTHENTICATION_ERROR_KEY

protected java.lang.String AUTHENTICATION_ERROR_KEY
Resource bundle property key for error message describing situation where an error prevented authentication from occurring


AUTHENTICATION_FAILED_KEY

protected java.lang.String AUTHENTICATION_FAILED_KEY
Resource bundle property key for error message describing situation where authentication failed


authenticator

protected Authenticator authenticator
Security reader


props

protected final java.util.Properties props
Constructor Detail

LoginContext

public LoginContext(Authenticator _auth)
Constructor

Method Detail

login

public Subject login(java.lang.String subjectId,
                     java.lang.String password)
              throws SecurityException
Returns a subject object with roles if subject id and password matches

Parameters:
subjectId -
password -
Returns:
Throws:
SecurityException