org.granite.messaging.service.security
Class TomcatSecurityService

java.lang.Object
  extended by org.granite.messaging.service.security.AbstractSecurityService
      extended by org.granite.messaging.service.security.TomcatSecurityService
All Implemented Interfaces:
SecurityService

public class TomcatSecurityService
extends AbstractSecurityService

Author:
Franck WOLFF

Field Summary
 
Fields inherited from class org.granite.messaging.service.security.AbstractSecurityService
AUTH_TYPE
 
Constructor Summary
TomcatSecurityService()
           
 
Method Summary
 Object authorize(AbstractSecurityContext context)
           
 void configure(Map<String,String> params)
           
protected  Context getContext(HttpServletRequest request)
           
protected  Engine getEngine()
           
protected  Principal getPrincipal(HttpServletRequest httpRequest)
           
protected  Realm getRealm(HttpServletRequest request)
           
protected  Request getRequest(HttpServletRequest request)
           
protected  Field getRequestField()
           
protected  Session getSession(HttpServletRequest httpRequest, boolean create)
           
 void login(Object credentials)
           
 void logout()
           
 
Methods inherited from class org.granite.messaging.service.security.AbstractSecurityService
decodeBase64Credentials, endAuthorization, endLogin, endLogout, handleSecurityException, startAuthorization, tryRelogin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TomcatSecurityService

public TomcatSecurityService()
Method Detail

getRequestField

protected Field getRequestField()

getEngine

protected Engine getEngine()

configure

public void configure(Map<String,String> params)

login

public void login(Object credentials)
           throws SecurityServiceException
Throws:
SecurityServiceException

authorize

public Object authorize(AbstractSecurityContext context)
                 throws Exception
Throws:
Exception

logout

public void logout()
            throws SecurityServiceException
Throws:
SecurityServiceException

getPrincipal

protected Principal getPrincipal(HttpServletRequest httpRequest)

getSession

protected Session getSession(HttpServletRequest httpRequest,
                             boolean create)

getRequest

protected Request getRequest(HttpServletRequest request)

getContext

protected Context getContext(HttpServletRequest request)

getRealm

protected Realm getRealm(HttpServletRequest request)