|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.security.auth.servlet.spi.AbstractHandler
org.openmdx.security.auth.servlet.spi.AbstractAuthenticationHandler
public abstract class AbstractAuthenticationHandler
Abstract HTTP Authentication Handler
| Constructor Summary | |
|---|---|
protected |
AbstractAuthenticationHandler()
Constructor |
| Method Summary | |
|---|---|
protected String |
applicationNameDefault()
Provide the "application-name" default value. |
protected long |
callbackTimeoutDefault()
Provide the "callback-timeout" default value. |
void |
destroy()
Called by the servlet to indicate to a HTTP handler that the servlet is being taken out of service. |
AuthenticationContext |
getAuthentication(HttpServletRequest request,
boolean create)
Acquire an AuthenticationContext object |
protected String |
getCorrelationId(HttpServletRequest request)
Get the correlation id for a given HTTP request. |
protected abstract Map |
getSharedOptions()
Retrieve the shared options |
protected long |
idleTimeoutDefault()
Provide the "idle-timeout" default value. |
void |
init()
A convenience method which can be overridden so that there's no need to call super.init(config). |
protected int |
initialCapacityDefault()
Provide the "initital-capacity" default value. |
void |
invalidateObject(Object obj)
|
protected boolean |
isLenient()
Retrieve the lenient. |
protected boolean |
lenientDefault()
Provide the "lenient" default value. |
protected String |
loginConfigurationDefault()
Provide the "login-configuration" default value. |
protected int |
maximumCapacityDefault()
Provide the "maximum-capacity" default value. |
protected long |
maximumWaitDefault()
Provide the "maximum-wait" default value. |
void |
returnAuthentication(HttpServletRequest request)
Return an Authentication object |
| Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractHandler |
|---|
debugDefault, endBody, endDocument, endHead, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getServletContext, getServletName, init, 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 |
|---|
init |
| Constructor Detail |
|---|
protected AbstractAuthenticationHandler()
| Method Detail |
|---|
protected final boolean isLenient()
lenient's value
protected abstract Map getSharedOptions()
throws ServletException
LoginModules
ServletException
public void init()
throws ServletException
AbstractHandlersuper.init(config).
Instead of overriding init(ServletConfig), simply override
this method and it will be called by
AbstractHandler.init(ServletConfig).
init in class AbstractHandlerServletExceptionpublic void destroy()
HttpHandlerThis method gives the HTTP hanlder an opportunity to clean up any resources that are being held (for example, memory, file handles, threads) and make sure that any persistent state is synchronized with the handler's current state in memory.
destroy in interface HttpHandlerdestroy in class AbstractHandlerprotected String getCorrelationId(HttpServletRequest request)
Authentication object.
public AuthenticationContext getAuthentication(HttpServletRequest request,
boolean create)
throws ServletException,
TimeoutException
HttpAuthenticationHandlerAuthenticationContext object
getAuthentication in interface HttpAuthenticationHandlercreate - tells whther the Authentication should be
newly created or retrieved.
Authentication object
ServletException - if Authentication acquisition fails
TimeoutException - in case of timeout
public void returnAuthentication(HttpServletRequest request)
throws ServletException,
TimeoutException
HttpAuthenticationHandlerAuthentication object
returnAuthentication in interface HttpAuthenticationHandlerServletException - if Authentication return fails
TimeoutException - in case of timeout
public void invalidateObject(Object obj)
throws Exception
invalidateObject in interface InvalidatorExceptionprotected String loginConfigurationDefault()
protected int initialCapacityDefault()
protected int maximumCapacityDefault()
protected long maximumWaitDefault()
protected long idleTimeoutDefault()
protected long callbackTimeoutDefault()
protected boolean lenientDefault()
protected String applicationNameDefault()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||