public class SimpleAuthorizationHandler extends BasicHandler
allowedRoles handler parameter to determine if
user has rights to access the service
The allowByDefault handler parameter can be used to authorize
all users if the parameter is set to true and the allowedRoles
access control list is not specified.
Replace this with your 'real' Authorization code.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
makeLockable, name, options| Constructor and Description |
|---|
SimpleAuthorizationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
invoke(MessageContext msgContext)
Authorize the user and targetService from the msgContext
|
void |
onFault(MessageContext msgContext)
Nothing to undo
|
canHandleBlock, cleanup, generateWSDL, getDeploymentData, getName, getOption, getOptions, getUnderstoodHeaders, init, initHashtable, setName, setOption, setOptionDefault, setOptions, setOptionsLockablepublic void invoke(MessageContext msgContext) throws AxisFault
msgContext - the MessageContext to process with this
Handler.AxisFault - if the handler encounters an errorpublic void onFault(MessageContext msgContext)
onFault in interface HandleronFault in class BasicHandlermsgContext - the MessageContext to process the fault
toCopyright © The Apache Software Foundation. All Rights Reserved.