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, registerWithCallbackHandler
protected 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.ServerAuth
secureResponse
in class WebServerAuthModule
javax.security.auth.message.AuthException
public 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.ServerAuth
validateRequest
in class WebServerAuthModule
javax.security.auth.message.AuthException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.