|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.realm.RealmBase org.apache.catalina.realm.JAASRealm org.apache.geronimo.tomcat.realm.TomcatJAASRealm
public class TomcatJAASRealm
Field Summary | |
---|---|
protected static String |
info
Descriptive information about this Realm implementation. |
protected static String |
name
Descriptive information about this Realm implementation. |
Fields inherited from class org.apache.catalina.realm.JAASRealm |
---|
appName, roleClasses, roleClassNames, sm, useContextClassLoader, userClasses, userClassNames |
Fields inherited from class org.apache.catalina.realm.RealmBase |
---|
container, containerLog, controller, digest, digestEncoding, domain, host, initialized, lifecycle, md, md5Encoder, md5Helper, mserver, oname, path, started, support, type, validate |
Fields inherited from interface org.apache.catalina.Lifecycle |
---|
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
Constructor Summary | |
---|---|
TomcatJAASRealm()
|
Method Summary | |
---|---|
Principal |
authenticate(String username,
String credentials)
Return the Principal associated with the specified
username and credentials, if there is one; otherwise return
null . |
Object |
clone()
|
protected Principal |
createPrincipal(String username,
Subject subject)
|
boolean |
hasRole(Principal principal,
String role)
|
Methods inherited from class org.apache.catalina.realm.JAASRealm |
---|
getAppName, getName, getPassword, getPrincipal, getRoleClassNames, getUserClassNames, isUseContextClassLoader, makeLegalForJAAS, setAppName, setContainer, setRoleClassNames, setUseContextClassLoader, setUserClassNames, start, stop |
Methods inherited from class org.apache.catalina.realm.RealmBase |
---|
addLifecycleListener, addPropertyChangeListener, authenticate, authenticate, authenticate, backgroundProcess, destroy, digest, Digest, findLifecycleListeners, findSecurityConstraints, getContainer, getController, getDigest, getDigest, getDigestEncoding, getDomain, getInfo, getObjectName, getType, getValidate, hasMessageDigest, hasResourcePermission, hasUserDataPermission, init, main, postDeregister, postRegister, preDeregister, preRegister, removeLifecycleListener, removePropertyChangeListener, setController, setDigest, setDigestEncoding, setValidate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String info
Realm
implementation.
protected static final String name
Realm
implementation.
Constructor Detail |
---|
public TomcatJAASRealm()
Method Detail |
---|
public Principal authenticate(String username, String credentials)
Principal
associated with the specified
username and credentials, if there is one; otherwise return
null
.
If there are any errors with the JDBC connection, executing the query or
anything we return null (don't authenticate). This event is also logged,
and the connection will be closed so that a subsequent request will
automatically re-open it.
authenticate
in interface org.apache.catalina.Realm
authenticate
in class org.apache.catalina.realm.JAASRealm
username
- Username of the Principal
to look upcredentials
- Password or other credentials to use in authenticating this
usernameprotected Principal createPrincipal(String username, Subject subject)
createPrincipal
in class org.apache.catalina.realm.JAASRealm
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean hasRole(Principal principal, String role)
hasRole
in interface org.apache.catalina.Realm
hasRole
in class org.apache.catalina.realm.RealmBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |