public class HTTPBasicServerAuthModule extends WebServerAuthModule
This class implements a JASPI ServerAuthModule that handles the HTTP BASIC authentication.
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
AUTHENTICATE_BYTES
Authenticate bytes.
|
protected boolean |
cache |
protected org.apache.catalina.Context |
context |
protected String |
delegatingLoginContextName |
callbackHandler, options| Constructor and Description |
|---|
HTTPBasicServerAuthModule()
Creates an instance of
HTTPBasicServerAuthModule. |
HTTPBasicServerAuthModule(String delegatingLoginContextName)
Creates an instance of
HTTPBasicServerAuthModule with the specified delegating login context name. |
| Modifier and Type | Method and Description |
|---|---|
javax.security.auth.message.AuthStatus |
secureResponse(javax.security.auth.message.MessageInfo messageInfo,
Subject serviceSubject) |
javax.security.auth.message.AuthStatus |
validateRequest(javax.security.auth.message.MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject) |
cleanSubject, getSupportedMessageTypes, initialize, registerWithCallbackHandlerprotected org.apache.catalina.Context context
protected boolean cache
public static final byte[] AUTHENTICATE_BYTES
protected String delegatingLoginContextName
public HTTPBasicServerAuthModule()
Creates an instance of HTTPBasicServerAuthModule.
public HTTPBasicServerAuthModule(String delegatingLoginContextName)
Creates an instance of HTTPBasicServerAuthModule with the specified delegating login context name.
delegatingLoginContextName - the name of the login context configuration that contains the JAAS modules that
are to be called by this module.public javax.security.auth.message.AuthStatus secureResponse(javax.security.auth.message.MessageInfo messageInfo, Subject serviceSubject) throws javax.security.auth.message.AuthException
secureResponse in interface javax.security.auth.message.ServerAuthsecureResponse in class WebServerAuthModulejavax.security.auth.message.AuthExceptionpublic javax.security.auth.message.AuthStatus validateRequest(javax.security.auth.message.MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws javax.security.auth.message.AuthException
validateRequest in interface javax.security.auth.message.ServerAuthvalidateRequest in class WebServerAuthModulejavax.security.auth.message.AuthExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.