public class BasicAuthenticator extends LoginAuthenticator
Authenticator.AuthConfiguration, Authenticator.Factory_identityService, _loginService| Constructor and Description |
|---|
BasicAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthMethod() |
java.nio.charset.Charset |
getCharset() |
boolean |
secureResponse(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
is response secure
|
void |
setCharset(java.nio.charset.Charset charset) |
Authentication |
validateRequest(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory)
Validate a request
|
getLoginService, login, logout, prepareRequest, renewSession, setConfigurationpublic java.nio.charset.Charset getCharset()
public void setCharset(java.nio.charset.Charset charset)
public java.lang.String getAuthMethod()
public Authentication validateRequest(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, boolean mandatory) throws ServerAuthException
Authenticatorreq - The requestres - The responsemandatory - True if authentication is mandatory.Authentication.User. If a response has
been sent by the Authenticator (which can be done for both successful and unsuccessful authentications), then the result will
implement Authentication.ResponseSent. If Authentication is not mandatory, then a
Authentication.Deferred may be returned.ServerAuthException - if unable to validate requestpublic boolean secureResponse(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
boolean mandatory,
Authentication.User validatedUser)
throws ServerAuthException
Authenticatorreq - the requestres - the responsemandatory - if security is mandatorvalidatedUser - the user that was validatedServerAuthException - if unable to test responseCopyright © 1995–2021 Webtide. All rights reserved.