public class AuthenticatorProxy extends AuthenticatorBase
Modifier and Type | Field and Description |
---|---|
static String |
PROXY_AUTH_TYPE |
alwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, entropy, info, log, random, randomClass, rb, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, sso
container, controller, debug, domain, lifecycle, next, oname, started
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENT
END_PIPELINE, INVOKE_NEXT
Constructor and Description |
---|
AuthenticatorProxy(Authenticator authenticator,
Principal principal,
String authType) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(HttpRequest request,
HttpResponse response,
LoginConfig config)
Authenticate the user making this request, based on the specified login configuration.
|
String |
getAuthMethod() |
boolean |
getCache()
Return the cache authenticated Principals flag.
|
Container |
getContainer()
Return the Container to which this Valve is attached.
|
associate, doLogin, generateSessionId, getAlwaysUseSession, getDebug, getDisableProxyCaching, getEntropy, getInfo, 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
addLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getController, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, removeLifecycleListener, setController, setNext, setObjectName
public static final String PROXY_AUTH_TYPE
public AuthenticatorProxy(Authenticator authenticator, Principal principal, String authType) throws LifecycleException
LifecycleException
public boolean authenticate(HttpRequest request, HttpResponse response, LoginConfig config) throws IOException
AuthenticatorBase
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 performedIOException
- if an input/output error occurspublic String getAuthMethod()
getAuthMethod
in class AuthenticatorBase
public boolean getCache()
AuthenticatorBase
getCache
in class AuthenticatorBase
public Container getContainer()
AuthenticatorBase
getContainer
in interface Contained
getContainer
in class AuthenticatorBase
Copyright © 2019. All rights reserved.