|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.core.BaseInterceptor
org.apache.tomcat.modules.aaa.RealmBase
Field Summary | |
protected java.lang.String |
digest
Digest algorithm used in passwords. |
protected static StringManager |
sm
The string manager for this package. |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
RealmBase()
|
Method Summary | |
int |
authenticate(Request req,
Response response)
This callback is used to extract and verify the user identity and credentials. |
static java.lang.String |
digest(java.lang.String credentials,
java.lang.String algorithm)
Digest password using the algorithm especificied and convert the result to a corresponding hex string. |
void |
engineInit(ContextManager cm)
Initialize the module. |
protected abstract java.lang.String |
getCredentials(java.lang.String username)
|
java.lang.String |
getDigest()
Gets the digest algorithm used for credentials in the database. |
protected abstract java.security.Principal |
getPrincipal(java.lang.String username)
|
protected abstract java.lang.String[] |
getUserRoles(java.lang.String username)
|
static void |
main(java.lang.String[] args)
RealmBase can be used as a standalone tool for offline password digest |
void |
setDigest(java.lang.String algorithm)
Sets the digest algorithm used for credentials in the database. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addContext, addHandler, addInterceptor, addSecurityConstraint, afterBody, authorize, beforeBody, beforeCommit, contextInit, contextMap, contextShutdown, contextState, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preService, preServletDestroy, preServletInit, registerHooks, reload, removeContainer, removeContext, removeHandler, removeInterceptor, requestMap, sessionState, setContext, setContextManager, setDebug, setInfo, setNote, setNote |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static StringManager sm
protected java.lang.String digest
Constructor Detail |
public RealmBase()
Method Detail |
public java.lang.String getDigest()
public void setDigest(java.lang.String algorithm)
algorithm
- the Encode typepublic static final java.lang.String digest(java.lang.String credentials, java.lang.String algorithm)
credentials
- Password or other credentials to use in authenticating this usernamealgorithm
- Algorithm used to do the digestpublic static void main(java.lang.String[] args)
args
- protected abstract java.lang.String getCredentials(java.lang.String username)
protected abstract java.lang.String[] getUserRoles(java.lang.String username)
protected abstract java.security.Principal getPrincipal(java.lang.String username)
public void engineInit(ContextManager cm) throws TomcatException
BaseInterceptor
engineInit
in class BaseInterceptor
TomcatException
- The module will not be added if any
exception is thrown by engineInit.public int authenticate(Request req, Response response)
BaseInterceptor
authenticate
in class BaseInterceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |