org.apache.catalina.authenticator
public class BasicAuthenticator extends AuthenticatorBase
Modifier and Type | Field and Description |
---|---|
static byte[] |
AUTHENTICATE_BYTES
Authenticate bytes.
|
protected static java.lang.String |
info
Descriptive information about this implementation.
|
algorithm, cache, changeSessionIdOnAuthentication, context, DEFAULT_ALGORITHM, digest, disableProxyCaching, entropy, lifecycle, random, randomClass, securePagesWithPragma, SESSION_ID_BYTES, sm, sso, started
container, containerLog, controller, domain, mserver, next, oname
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
Constructor and Description |
---|
BasicAuthenticator() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(Request request,
Response response,
LoginConfig config)
Authenticate the user making this request, based on the specified
login configuration.
|
java.lang.String |
getInfo()
Return descriptive information about this Valve implementation.
|
addLifecycleListener, associate, findLifecycleListeners, generateSessionId, getAlgorithm, getCache, getChangeSessionIdOnAuthentication, getContainer, getDigest, getDisableProxyCaching, getEntropy, getRandom, getRandomClass, getSecurePagesWithPragma, invoke, reauthenticateFromSSO, register, removeLifecycleListener, setAlgorithm, setCache, setChangeSessionIdOnAuthentication, setContainer, setDisableProxyCaching, setEntropy, setRandomClass, setSecurePagesWithPragma, start, stop
backgroundProcess, createObjectName, event, getContainerName, getController, getDomain, getNext, getObjectName, getParentName, postDeregister, postRegister, preDeregister, preRegister, setController, setNext, setObjectName, toString
public static final byte[] AUTHENTICATE_BYTES
protected static final java.lang.String info
public java.lang.String getInfo()
getInfo
in interface Valve
getInfo
in class AuthenticatorBase
public boolean authenticate(Request request, Response response, LoginConfig config) throws java.io.IOException
true
if any specified
constraint has been satisfied, or false
if we have
created a response challenge already.authenticate
in class AuthenticatorBase
request
- Request we are processingresponse
- Response we are creatingconfig
- Login configuration describing how authentication
should be performedjava.io.IOException
- if an input/output error occursCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.