org.openmdx.security.auth.servlet.simple
Class SimpleSubjectHandler

java.lang.Object
  extended by org.openmdx.security.auth.servlet.spi.AbstractHandler
      extended by org.openmdx.security.auth.servlet.spi.AbstractSubjectHandler
          extended by org.openmdx.security.auth.servlet.simple.SimpleSubjectHandler
All Implemented Interfaces:
ServletConfig, HttpHandler, HttpSubjectHandler
Direct Known Subclasses:
VerboseSubjectHandler

public class SimpleSubjectHandler
extends AbstractSubjectHandler

Simple Subject Handler


Constructor Summary
SimpleSubjectHandler()
          Constructor
 
Method Summary
protected  KeyProvider getKeyProvider()
          Retrieve this handler's KeyPrpvider
 void handle(HttpServletRequest request, HttpServletResponse response, Subject subject)
          Use the Subject to authenticate the session or to set cookies.
protected  void init()
          A convenience method which can be overridden so that there's no need to call super.init(config).
 
Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractSubjectHandler
getCookie, getCookieComment, getCookieDomain, getCookieName, getCookiePath, getSignatureAlgorithm, getToken, getTokenFactory, getTokenTimeout, init, isCookieSecure
 
Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractHandler
debugDefault, destroy, endBody, endDocument, endHead, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getServletContext, getServletName, isDebug, log, log, startBody, startDocument, startHead, writeEncoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmdx.security.auth.servlet.cci.HttpHandler
destroy
 

Constructor Detail

SimpleSubjectHandler

public SimpleSubjectHandler()
Constructor

Method Detail

init

protected void init()
             throws ServletException
Description copied from class: AbstractHandler
A convenience method which can be overridden so that there's no need to call super.init(config).

Instead of overriding init(ServletConfig), simply override this method and it will be called by AbstractHandler.init(ServletConfig).

Overrides:
init in class AbstractHandler
Throws:
ServletException

getKeyProvider

protected KeyProvider getKeyProvider()
Description copied from class: AbstractSubjectHandler
Retrieve this handler's KeyPrpvider

Specified by:
getKeyProvider in class AbstractSubjectHandler
Returns:
this handler's KeyProvider

handle

public void handle(HttpServletRequest request,
                   HttpServletResponse response,
                   Subject subject)
            throws IOException
Description copied from interface: HttpSubjectHandler
Use the Subject to authenticate the session or to set cookies.

Throws:
IOException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.