public abstract class TomcatAuthModule extends Object implements ServerAuthModule
Modifier and Type | Field and Description |
---|---|
protected static String |
AUTH_HEADER_NAME |
protected static String |
AUTHORIZATION_HEADER |
protected boolean |
cache |
protected boolean |
changeSessionIdOnAuthentication |
protected Context |
context |
static String |
DEFAULT_REALM_NAME |
protected CallbackHandler |
handler |
static String |
REALM_NAME |
protected String |
realmName |
protected static StringManager |
sm
The string manager for this package.
|
Constructor and Description |
---|
TomcatAuthModule(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
cleanSubject(MessageInfo messageInfo,
Subject subject) |
protected GenericPrincipal |
getPrincipal(PasswordValidationCallback passwordCallback) |
String |
getRealmName() |
Class<?>[] |
getSupportedMessageTypes() |
protected void |
handlePrincipalCallbacks(Subject clientSubject,
Principal principal)
Convert Tomcat's principal to JAAS subject using JASPIC callbacks
|
void |
initialize(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map options) |
abstract void |
initializeModule(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map<String,String> options)
Every subclass must extend this method in order to be initialized.
|
protected boolean |
isMandatory(MessageInfo messageInfo) |
AuthStatus |
secureResponse(MessageInfo messageInfo,
Subject serviceSubject) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validateRequest
public static final String REALM_NAME
public static final String DEFAULT_REALM_NAME
protected static final String AUTH_HEADER_NAME
protected static final String AUTHORIZATION_HEADER
protected static final StringManager sm
protected String realmName
protected CallbackHandler handler
protected Context context
protected boolean cache
protected boolean changeSessionIdOnAuthentication
public TomcatAuthModule(Context context)
protected boolean isMandatory(MessageInfo messageInfo)
public final void initialize(MessagePolicy requestPolicy, MessagePolicy responsePolicy, CallbackHandler handler, Map options) throws AuthException
initialize
in interface ServerAuthModule
AuthException
public String getRealmName()
public abstract void initializeModule(MessagePolicy requestPolicy, MessagePolicy responsePolicy, CallbackHandler handler, Map<String,String> options) throws AuthException
requestPolicy
- responsePolicy
- handler
- options
- AuthException
protected void handlePrincipalCallbacks(Subject clientSubject, Principal principal) throws IOException, UnsupportedCallbackException
clientSubject
- principal
- IOException
UnsupportedCallbackException
protected GenericPrincipal getPrincipal(PasswordValidationCallback passwordCallback)
public Class<?>[] getSupportedMessageTypes()
getSupportedMessageTypes
in interface ServerAuthModule
public AuthStatus secureResponse(MessageInfo messageInfo, Subject serviceSubject) throws AuthException
secureResponse
in interface ServerAuth
AuthException
public void cleanSubject(MessageInfo messageInfo, Subject subject) throws AuthException
cleanSubject
in interface ServerAuth
AuthException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.