|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.realm.RealmBase
org.apache.catalina.realm.JAASRealm
org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm
org.apache.geronimo.tomcat.realm.TomcatEJBWSGeronimoRealm
public class TomcatEJBWSGeronimoRealm
TomcatEJBWSGeronimoRealm is intended only for use with ejb web services in tomcat. Tomcat appears to conflate the separate concepts of logging in and checking permissions into one class. This is wholly inappropriate for ejb web services, where logging in is handled by the web container but authorization is handled by the ejb container. This class "separates" the concerns by always authorizing everything.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.catalina.realm.RealmBase |
|---|
org.apache.catalina.realm.RealmBase.AllRolesMode |
| Field Summary |
|---|
| Fields inherited from class org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm |
|---|
info, name |
| 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 |
|---|
allRolesMode, 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 | |
|---|---|
TomcatEJBWSGeronimoRealm()
|
|
| Method Summary | |
|---|---|
boolean |
hasResourcePermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.SecurityConstraint[] constraints,
org.apache.catalina.Context context)
Perform access control based on the specified authorization constraint. |
boolean |
hasUserDataPermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.SecurityConstraint[] constraints)
Enforce any user data constraint required by the security constraint guarding this request URI. |
| Methods inherited from class org.apache.geronimo.tomcat.realm.TomcatGeronimoRealm |
|---|
authenticate, authenticate, authenticate, hasRole, setRequestWrapperName, start, stop |
| Methods inherited from class org.apache.catalina.realm.JAASRealm |
|---|
createPrincipal, getAppName, getName, getPassword, getPrincipal, getRoleClassNames, getUserClassNames, isUseContextClassLoader, makeLegalForJAAS, parseClassNames, setAppName, setContainer, setRoleClassNames, setUseContextClassLoader, setUserClassNames |
| Methods inherited from class org.apache.catalina.realm.RealmBase |
|---|
addLifecycleListener, addPropertyChangeListener, authenticate, authenticate, backgroundProcess, destroy, digest, Digest, findLifecycleListeners, findSecurityConstraints, getAllRolesMode, getContainer, getController, getDigest, getDigest, getDigestEncoding, getDomain, getInfo, getObjectName, getPrincipal, getType, getValidate, hasMessageDigest, init, main, postDeregister, postRegister, preDeregister, preRegister, removeLifecycleListener, removePropertyChangeListener, setAllRolesMode, setController, setDigest, setDigestEncoding, setValidate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TomcatEJBWSGeronimoRealm()
| Method Detail |
|---|
public boolean hasResourcePermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.SecurityConstraint[] constraints,
org.apache.catalina.Context context)
throws IOException
TomcatGeronimoRealmtrue if this constraint is satisfied and processing
should continue, or false otherwise.
hasResourcePermission in interface org.apache.catalina.RealmhasResourcePermission in class TomcatGeronimoRealmrequest - Request we are processingresponse - Response we are creatingconstraints - Security constraints we are enforcingcontext - The Context to which client of this class is attached.
IOException - if an input/output error occurs
public boolean hasUserDataPermission(org.apache.catalina.connector.Request request,
org.apache.catalina.connector.Response response,
org.apache.catalina.deploy.SecurityConstraint[] constraints)
throws IOException
TomcatGeronimoRealmtrue if this constraint
was not violated and processing should continue, or false
if we have created a response already.
hasUserDataPermission in interface org.apache.catalina.RealmhasUserDataPermission in class TomcatGeronimoRealmrequest - Request we are processingresponse - Response we are creatingconstraints - Security constraint being checked
IOException - if an input/output error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||