public abstract class WebServerAuthModule extends Object implements javax.security.auth.message.module.ServerAuthModule
Base class for JBoss Web JSR-196 ServerAuthModule
s.
Modifier and Type | Field and Description |
---|---|
protected CallbackHandler |
callbackHandler |
protected Map |
options |
Constructor and Description |
---|
WebServerAuthModule() |
Modifier and Type | Method and Description |
---|---|
void |
cleanSubject(javax.security.auth.message.MessageInfo messageInfo,
Subject subject) |
Class[] |
getSupportedMessageTypes() |
void |
initialize(javax.security.auth.message.MessagePolicy requestPolicy,
javax.security.auth.message.MessagePolicy responsePolicy,
CallbackHandler handler,
Map options) |
protected void |
registerWithCallbackHandler(Principal userPrincipal,
String username,
String password)
Register the obtained security attributes with the CallbackHandler.
|
abstract javax.security.auth.message.AuthStatus |
secureResponse(javax.security.auth.message.MessageInfo messageInfo,
Subject serviceSubject) |
abstract javax.security.auth.message.AuthStatus |
validateRequest(javax.security.auth.message.MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject) |
protected CallbackHandler callbackHandler
protected Map options
public Class[] getSupportedMessageTypes()
getSupportedMessageTypes
in interface javax.security.auth.message.module.ServerAuthModule
public void initialize(javax.security.auth.message.MessagePolicy requestPolicy, javax.security.auth.message.MessagePolicy responsePolicy, CallbackHandler handler, Map options) throws javax.security.auth.message.AuthException
initialize
in interface javax.security.auth.message.module.ServerAuthModule
javax.security.auth.message.AuthException
public void cleanSubject(javax.security.auth.message.MessageInfo messageInfo, Subject subject) throws javax.security.auth.message.AuthException
cleanSubject
in interface javax.security.auth.message.ServerAuth
javax.security.auth.message.AuthException
public abstract 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
javax.security.auth.message.AuthException
public abstract 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
javax.security.auth.message.AuthException
protected void registerWithCallbackHandler(Principal userPrincipal, String username, String password)
Register the obtained security attributes with the CallbackHandler.
userPrincipal
- the user principal.username
- a String
representing the username.password
- a String
representing the password.Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.