Authenticator
public class BasicAuthenticator extends LoginAuthenticator
Authenticator.AuthConfiguration, Authenticator.Factory
_identityService, _loginService
Constructor | Description |
---|---|
BasicAuthenticator() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getAuthMethod() |
|
boolean |
secureResponse(ServletRequest req,
ServletResponse res,
boolean mandatory,
Authentication.User validatedUser) |
is response secure
|
Authentication |
validateRequest(ServletRequest req,
ServletResponse res,
boolean mandatory) |
Validate a request
|
getLoginService, login, prepareRequest, renewSession, setConfiguration
public java.lang.String getAuthMethod()
Authenticator.getAuthMethod()
public Authentication validateRequest(ServletRequest req, ServletResponse res, boolean mandatory) throws ServerAuthException
Authenticator
req
- 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 manditory, then a
Authentication.Deferred
may be returned.ServerAuthException
- if unable to validate requestAuthenticator.validateRequest(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean)
public boolean secureResponse(ServletRequest req, ServletResponse res, boolean mandatory, Authentication.User validatedUser) throws ServerAuthException
Authenticator
req
- the requestres
- the responsemandatory
- if security is mandatorvalidatedUser
- the user that was validatedServerAuthException
- if unable to test responseCopyright © 1995–2018 Webtide. All rights reserved.