| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.axis.handlers.BasicHandler
org.jboss.net.axis.server.JBossAuthorizationHandler
AuthorizationHandler that checks allowed and denied roles against the active
 subject using a given realmMapping. Is somehow redundant to what, e.g., the JBoss EJB invocation handler
 does, but maybe we need this to shield access to other container resources
 such as MBeans for which we will expose security-agnostic providers.
 
 
| Field Summary | |
| protected  boolean | isInitialisedwhether this handler has been initialized | 
| protected  org.jboss.security.RealmMapping | realmMappingthe security domain against which we call | 
| protected  Set | rolesAllowedthe roles that we want to let through | 
| protected  Set | rolesDeniedthe roles that we want to deny access | 
| Fields inherited from class org.apache.axis.handlers.BasicHandler | 
| makeLockable, name, options | 
| Constructor Summary | |
| JBossAuthorizationHandler() | |
| Method Summary | |
| protected  boolean | doesUserHaveRole(Principal principal,
                 Set roles)return whether the given Principal has the given roles | 
| protected  Collection | getAssociatedPrincipals(org.apache.axis.MessageContext msgContext)returns a collection of principals that the context subject is associated with | 
| protected  Principal | getPrincipal(String userName)creates a new principal belonging to the given username, override to adapt to specific security domains. | 
| protected  void | initialise()initializes the roles checked by this handler | 
|  void | invoke(org.apache.axis.MessageContext msgContext)Authenticate the user and password from the msgContext. | 
| Methods inherited from class org.apache.axis.handlers.BasicHandler | 
| canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, onFault, setName, setOption, setOptionDefault, setOptions, setOptionsLockable | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected org.jboss.security.RealmMapping realmMapping
protected final Set rolesAllowed
protected final Set rolesDenied
protected boolean isInitialised
| Constructor Detail | 
public JBossAuthorizationHandler()
| Method Detail | 
protected void initialise()
                   throws org.apache.axis.AxisFault
org.apache.axis.AxisFaultprotected Principal getPrincipal(String userName)
protected Collection getAssociatedPrincipals(org.apache.axis.MessageContext msgContext)
protected boolean doesUserHaveRole(Principal principal, Set roles)
public void invoke(org.apache.axis.MessageContext msgContext)
            throws org.apache.axis.AxisFault
org.apache.axis.AxisFault| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||