at.spardat.xma.plugins.dummy
Class DummyLoginModuleServer

java.lang.Object
  extended byat.spardat.xma.plugins.dummy.DummyLoginModuleServer
All Implemented Interfaces:
at.spardat.xma.security.LoginModuleServer

public class DummyLoginModuleServer
extends java.lang.Object
implements at.spardat.xma.security.LoginModuleServer

Dummy implementation of a server side authentication plugin. This implementation checks if the subject is from DummyLoginModule only by checking the class of the principal. It uses no challange response procedure, so its challange is constant.


Constructor Summary
DummyLoginModuleServer()
           
 
Method Summary
 java.lang.Object getPreLoginInfo(javax.servlet.http.HttpSession session)
          Get a constant String.
 boolean login(javax.security.auth.Subject subject, javax.servlet.http.HttpSession session)
          Validate the principals and credentials of the given subject.
 boolean logout(javax.security.auth.Subject subject, javax.servlet.http.HttpSession session)
          does nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyLoginModuleServer

public DummyLoginModuleServer()
Method Detail

getPreLoginInfo

public java.lang.Object getPreLoginInfo(javax.servlet.http.HttpSession session)
Get a constant String.

Specified by:
getPreLoginInfo in interface at.spardat.xma.security.LoginModuleServer
Returns:
"Hello world"

login

public boolean login(javax.security.auth.Subject subject,
                     javax.servlet.http.HttpSession session)
Validate the principals and credentials of the given subject.

Specified by:
login in interface at.spardat.xma.security.LoginModuleServer
Parameters:
subject - the subject as returned by DummyLoginModule
session - is ignored
Returns:
true if there is a DummyContext in the pricipals of the subject. false otherwise

logout

public boolean logout(javax.security.auth.Subject subject,
                      javax.servlet.http.HttpSession session)
does nothing

Specified by:
logout in interface at.spardat.xma.security.LoginModuleServer
Returns:
true