public class SSLAuthModule extends TomcatAuthModule
AUTH_HEADER_NAME, AUTHORIZATION_HEADER, cache, changeSessionIdOnAuthentication, context, DEFAULT_REALM_NAME, handler, REALM_NAME, realmName, sm
Constructor and Description |
---|
SSLAuthModule(Context context) |
Modifier and Type | Method and Description |
---|---|
protected X509Certificate[] |
getRequestCertificates(Request request)
Look for the X509 certificate chain in the Request under the key
javax.servlet.request.X509Certificate . |
void |
initializeModule(MessagePolicy requestPolicy,
MessagePolicy responsePolicy,
CallbackHandler handler,
Map<String,String> options)
Every subclass must extend this method in order to be initialized.
|
AuthStatus |
validateRequest(MessageInfo messageInfo,
Subject clientSubject,
Subject serviceSubject) |
cleanSubject, getPrincipal, getRealmName, getSupportedMessageTypes, handlePrincipalCallbacks, initialize, isMandatory, secureResponse
public SSLAuthModule(Context context)
public void initializeModule(MessagePolicy requestPolicy, MessagePolicy responsePolicy, CallbackHandler handler, Map<String,String> options) throws AuthException
TomcatAuthModule
initializeModule
in class TomcatAuthModule
AuthException
public AuthStatus validateRequest(MessageInfo messageInfo, Subject clientSubject, Subject serviceSubject) throws AuthException
AuthException
protected X509Certificate[] getRequestCertificates(Request request) throws IllegalStateException
javax.servlet.request.X509Certificate
. If not found, trigger
extracting the certificate chain from the Coyote request.request
- Request to be processednull
otherwise.IllegalStateException
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.