|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.axis.handlers.BasicHandler (src) org.jboss.net.axis.server.JBossAuthenticationHandler
AuthenticationHandler that interacts with a given JBoss autentication manager via default simple principals and passchars from the HTTP Basic Authentication.
It is derived from org.jboss.axis.handlers.SimpleAuthenticationHandler. Note that this is somehow redundant to the WebContainer security, but we want to be able to install different authentication schemes for different web services behind a single entry-point.
Per default, unauthenticated calls will be routed by NOT asking the jboss auth manager for validation (most domains still would refuse NobodyPrincipal, no matter how configured) and building a "null" security association.
By specifiying the validateUnauthenticatedCalls=true option, the handler will however try to interface the securityManager with the NobodyPrincipal and an empty password and ask for a proper security association. This is important when dealing with MS Clients (thanks to John Landers for pointing this out) that won�t send any authentication data if not confronted with an HTTP error on the first try.
Field Summary | |
protected SubjectSecurityManager (src) |
authMgr
this is the authentication manager that is responsible for our security domain if that is null, this authenticationhandler will block any call, rather deactivate the handler, then, or run against a NullSecurityManager |
protected boolean |
isInitialised
whether this handler has been initialized already |
protected boolean |
shouldValidateUnauthenticatedCalls
whether this handler should let through unauthenticated calls |
Fields inherited from class org.jboss.axis.handlers.BasicHandler (src) |
makeLockable, name, options |
Constructor Summary | |
JBossAuthenticationHandler()
default, all options are set afterwards |
Method Summary | |
protected void |
associate(java.security.Principal userPrincipal,
java.lang.String passwd,
javax.security.auth.Subject subject)
associates the call context with the given info |
protected java.security.Principal |
getPrincipal(java.lang.String userName)
creates a new principal belonging to the given username, override to adapt to specific security domains. |
protected void |
initialise()
initialize this authenticationhandler lazy, after the options have been set. |
void |
invoke(MessageContext (src) msgContext)
Authenticate the user and password from the msgContext. |
protected javax.security.auth.Subject |
validate(java.security.Principal userPrincipal,
java.lang.String passwd)
validates the given principal with the given password |
Methods inherited from class org.jboss.axis.handlers.BasicHandler (src) |
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 boolean isInitialised
protected boolean shouldValidateUnauthenticatedCalls
protected SubjectSecurityManager (src) authMgr
Constructor Detail |
public JBossAuthenticationHandler()
Method Detail |
protected void initialise() throws AxisFault (src)
AxisFault (src)
protected java.security.Principal getPrincipal(java.lang.String userName)
protected javax.security.auth.Subject validate(java.security.Principal userPrincipal, java.lang.String passwd) throws AxisFault (src)
AxisFault (src)
protected void associate(java.security.Principal userPrincipal, java.lang.String passwd, javax.security.auth.Subject subject)
public void invoke(MessageContext (src) msgContext) throws AxisFault (src)
invoke
in interface Handler (src)
invoke
in class BasicHandler (src)
AxisFault (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |