Class SSLAuthenticator
- java.lang.Object
-
- org.apache.catalina.valves.ValveBase
-
- org.apache.catalina.authenticator.AuthenticatorBase
-
- org.apache.catalina.authenticator.SSLAuthenticator
-
- All Implemented Interfaces:
Authenticator,Contained,Lifecycle,Valve,GlassFishValve
public class SSLAuthenticator extends AuthenticatorBase
An Authenticator and Valve implementation of authentication that utilizes SSL certificates to identify client users.- Version:
- $Revision: 1.4 $ $Date: 2007/04/17 21:33:22 $
- Author:
- Craig R. McClanahan
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringinfoDescriptive information about this implementation.-
Fields inherited from class org.apache.catalina.authenticator.AuthenticatorBase
alwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, entropy, random, randomClass, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sso
-
Fields inherited from class org.apache.catalina.valves.ValveBase
container, controller, debug, domain, lifecycle, log, next, oname, rb, started
-
Fields inherited from interface org.glassfish.web.valve.GlassFishValve
END_PIPELINE, INVOKE_NEXT
-
Fields inherited from interface org.apache.catalina.Lifecycle
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
-
-
Constructor Summary
Constructors Constructor Description SSLAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(HttpRequest request, HttpResponse response, LoginConfig config)Authenticate the user by checking for the existence of a certificate chain, and optionally asking a trust manager to validate that we trust this user.protected StringgetAuthMethod()StringgetInfo()Return descriptive information about this Valve implementation.-
Methods inherited from class org.apache.catalina.authenticator.AuthenticatorBase
associate, doLogin, generateSessionId, getAlwaysUseSession, getCache, getContainer, getDebug, getDisableProxyCaching, getEntropy, getRandom, getRandomClass, getRealmName, getSession, getSession, getSingleSignOn, invoke, isChangeSessionIdOnAuthentication, isSecurePagesWithPragma, log, log, login, logout, postInvoke, register, setAlwaysUseSession, setCache, setChangeSessionIdOnAuthentication, setContainer, setDebug, setDisableProxyCaching, setEntropy, setRandomClass, setRealmName, setSecurePagesWithPragma, setSingleSignOn, start, stop
-
Methods inherited from class org.apache.catalina.valves.ValveBase
addLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getController, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, removeLifecycleListener, setController, setNext, setObjectName
-
-
-
-
Field Detail
-
info
protected static final String info
Descriptive information about this implementation.- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticate
public boolean authenticate(HttpRequest request, HttpResponse response, LoginConfig config) throws IOException
Authenticate the user by checking for the existence of a certificate chain, and optionally asking a trust manager to validate that we trust this user.- Specified by:
authenticatein classAuthenticatorBase- Parameters:
request- Request we are processingresponse- Response we are creatingconfig- Login configuration describing how authentication should be performed- Throws:
IOException- if an input/output error occurs
-
getInfo
public String getInfo()
Return descriptive information about this Valve implementation.- Specified by:
getInfoin interfaceGlassFishValve- Specified by:
getInfoin interfaceValve- Overrides:
getInfoin classAuthenticatorBase
-
getAuthMethod
protected String getAuthMethod()
- Specified by:
getAuthMethodin classAuthenticatorBase
-
-