|
||||||||||
| 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.AbstractSubjectHandler
public abstract class AbstractSubjectHandler
| Constructor Summary | |
|---|---|
AbstractSubjectHandler()
|
|
| Method Summary | |
|---|---|
protected Cookie |
getCookie(Subject subject)
Create Cookie based on the given subject's token |
protected String |
getCookieComment()
Retrieve the cookieComment. |
protected String |
getCookieDomain()
Retrieve the cookieDomain. |
protected String |
getCookieName()
Retrieve the cookieName. |
protected String |
getCookiePath()
Retrieve the cookiePath. |
protected abstract KeyProvider |
getKeyProvider()
Retrieve this handler's KeyPrpvider |
protected String |
getSignatureAlgorithm()
Retrieve the signatureAlgorithm. |
protected byte[] |
getToken(Subject subject)
Create a base 64 encoded token based on the subject's principals |
protected TokenFactory |
getTokenFactory()
Retrieve the tokenFactory. |
protected long |
getTokenTimeout()
Retrieve the tokenTimeout. |
void |
init(ServletConfig configuration)
Use the Servlet's configuration to initialize the handler. |
protected boolean |
isCookieSecure()
Retrieve the cookieSecure. |
| Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractHandler |
|---|
debugDefault, destroy, 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.HttpSubjectHandler |
|---|
handle |
| Methods inherited from interface org.openmdx.security.auth.servlet.cci.HttpHandler |
|---|
destroy |
| Constructor Detail |
|---|
public AbstractSubjectHandler()
| Method Detail |
|---|
protected String getCookieDomain()
cookieDomain's valueprotected String getCookieName()
cookieName's valueprotected String getCookieComment()
cookieComment's valueprotected String getCookiePath()
cookiePath's valueprotected boolean isCookieSecure()
cookieSecure's valueprotected String getSignatureAlgorithm()
signatureAlgorithm's valueprotected TokenFactory getTokenFactory()
tokenFactory's valueprotected long getTokenTimeout()
tokenTimeout's valueprotected abstract KeyProvider getKeyProvider()
KeyPrpvider
KeyProvider
public void init(ServletConfig configuration)
throws ServletException
AbstractHandlerServlet's configuration to initialize the handler.
init in interface HttpHandlerinit in class AbstractHandlerconfiguration - TODO
ServletException
protected byte[] getToken(Subject subject)
throws LoginException
subject -
LoginException
protected Cookie getCookie(Subject subject)
throws LoginException
Cookie based on the given subject's token
subject -
Cookie based on the subject's token
LoginException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||