public class AbstractAuthenticator extends AbstractAuthenticator
The AbstractAuthenticator provides a single-signon cache. Users logged into one web-app will share the same principal.
_passwordDigest, _passwordDigestAlgorithm, _passwordDigestRealm, NULL_USER| Constructor and Description |
|---|
AbstractAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
java.security.Principal |
authenticate(java.security.Principal principal,
PasswordCredentials cred,
java.lang.Object details)
Main authenticator API.
|
protected java.security.Principal |
getUserPrincipal(HttpServletRequest request,
HttpServletResponse response,
ServletContext app)
Backward compatiblity call
|
boolean |
isUserInRole(HttpServletRequest request,
HttpServletResponse response,
ServletContext application,
java.security.Principal user,
java.lang.String role) |
boolean |
isUserInRole(java.security.Principal user,
java.lang.String role)
Returns true if the user plays the named role.
|
protected java.security.Principal |
login(HttpServletRequest request,
HttpServletResponse response,
ServletContext app)
Backward compatiblity call
|
protected java.security.Principal |
login(HttpServletRequest request,
HttpServletResponse response,
ServletContext app,
java.lang.String userName,
java.lang.String password)
Backward compatiblity call
|
protected java.security.Principal |
loginImpl(HttpServletRequest request,
HttpServletResponse response,
ServletContext app,
java.lang.String userName,
java.lang.String password)
Backward compatiblity call
|
addRoleMapping, authenticate, authenticate, authenticate, authenticate, digest, getAlgorithm, getDigest, getDigestSecret, getDigestSecret, getLogoutOnSessionTimeout, getPasswordDigest, getPasswordDigest, getPasswordDigestAlgorithm, getPasswordDigestRealm, getPasswordUser, getPasswordUser, getSingleSignon, init, logout, setLogoutOnSessionTimeout, setPasswordDigest, setPasswordDigestAlgorithm, setPasswordDigestRealm, setSerializationHandle, stringToDigest, toString, writeReplacepublic java.security.Principal authenticate(java.security.Principal principal,
PasswordCredentials cred,
java.lang.Object details)
authenticate in class AbstractAuthenticatorprotected java.security.Principal login(HttpServletRequest request, HttpServletResponse response, ServletContext app, java.lang.String userName, java.lang.String password) throws ServletException
ServletExceptionprotected java.security.Principal loginImpl(HttpServletRequest request, HttpServletResponse response, ServletContext app, java.lang.String userName, java.lang.String password) throws ServletException
ServletExceptionprotected java.security.Principal getUserPrincipal(HttpServletRequest request, HttpServletResponse response, ServletContext app) throws ServletException
ServletExceptionprotected java.security.Principal login(HttpServletRequest request, HttpServletResponse response, ServletContext app) throws ServletException
ServletExceptionpublic boolean isUserInRole(java.security.Principal user,
java.lang.String role)
isUserInRole in interface AuthenticatorisUserInRole in class AbstractAuthenticatorrequest - the servlet requestuser - the user to testrole - the role to testpublic boolean isUserInRole(HttpServletRequest request, HttpServletResponse response, ServletContext application, java.security.Principal user, java.lang.String role) throws ServletException
ServletException