public class BasicAuthenticator extends AuthenticatorBase
| Modifier and Type | Field and Description |
|---|---|
protected static String |
info
Descriptive information about this implementation.
|
alwaysUseSession, AUTH_HEADER_NAME, cache, changeSessionIdOnAuthentication, context, disableProxyCaching, entropy, log, random, randomClass, rb, REALM_NAME, securePagesWithPragma, SESSION_ID_BYTES, ssocontainer, controller, debug, domain, lifecycle, next, oname, startedAFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, INIT_EVENT, START_EVENT, STOP_EVENTEND_PIPELINE, INVOKE_NEXT| Constructor and Description |
|---|
BasicAuthenticator() |
| 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.
|
protected String |
getAuthMethod() |
String |
getInfo()
Return descriptive information about this Valve implementation.
|
protected char[] |
parsePassword(String authorization)
Parse the password from the specified authorization credentials.
|
protected String |
parseUsername(String authorization)
Parse the username from the specified authorization credentials.
|
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, stopaddLifecycleListener, backgroundProcess, createObjectName, event, findLifecycleListeners, getController, getDomain, getNext, getObjectName, getParentName, invoke, isStarted, removeLifecycleListener, setController, setNext, setObjectNameprotected static final String info
public String getInfo()
getInfo in interface ValvegetInfo in interface GlassFishValvegetInfo in class AuthenticatorBasepublic boolean authenticate(HttpRequest request, HttpResponse response, LoginConfig config) throws IOException
true if any specified
constraint has been satisfied, or false if we have
created a response challenge already.authenticate in class AuthenticatorBaserequest - Request we are processingresponse - Response we are creatingconfig - Login configuration describing how authentication
should be performedIOException - if an input/output error occursprotected String parseUsername(String authorization)
null.authorization - Authorization credentials from this requestprotected char[] parsePassword(String authorization)
null.authorization - Authorization credentials from this requestprotected String getAuthMethod()
getAuthMethod in class AuthenticatorBaseCopyright © 2017. All rights reserved.