public interface Authenticator extends Initable
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
getRemoteUser(javax.servlet.http.HttpServletRequest request)
Gets the username of the
Principal authenticated for the given HttpServletRequest. |
Principal |
getUser(javax.servlet.http.HttpServletRequest request)
Gets the
Principal authenticated for the given HttpServletRequest. |
Principal |
getUser(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the
Principal for the HttpServletRequest. |
boolean |
login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password)
Tries to authenticate a user.
|
boolean |
login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password,
boolean storeCookie)
Tries to authenticate a user.
|
boolean |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void destroy()
String getRemoteUser(javax.servlet.http.HttpServletRequest request)
Principal authenticated for the given HttpServletRequest.request - Principal getUser(javax.servlet.http.HttpServletRequest request)
Principal authenticated for the given HttpServletRequest.request - Principal getUser(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Principal for the HttpServletRequest. The RememberMeToken will be regenerated for the HttpServletResponse if the token is invalid.request - response - boolean login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password)
throws AuthenticatorException
request - the HttpServletRequestresponse - the HttpServletResponseusername - the user name to check against the passwordpassword - the password to authenticate the user withAuthenticatorException - if an error occurs that stops the user from being authenticated (eg remote communication failure).boolean login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String username,
String password,
boolean storeCookie)
throws AuthenticatorException
request - the HttpServletRequestresponse - the HttpServletResponseusername - the user name to check against the passwordpassword - the password to authenticate the user withstoreCookie - whether to set a remember me cookie on successful loginAuthenticatorException - if an error occurs that stops the user from being authenticated (eg remote communication failure).boolean logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws AuthenticatorException
AuthenticatorExceptionCopyright © 2018 Atlassian. All rights reserved.