public class AbstractCookieAuthenticator extends AbstractAuthenticator implements CookieAuthenticator
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 |
---|
AbstractCookieAuthenticator() |
Modifier and Type | Method and Description |
---|---|
boolean |
associateCookie(java.security.Principal user,
java.lang.String cookieValue)
Associate the user with a cookie
|
java.security.Principal |
authenticateByCookie(java.lang.String cookieValue)
Authenticates the user based on the cookie
|
boolean |
isCookieSupported(java.lang.String jUseCookieAuth)
Test if cookie-based authentication is supported.
|
addRoleMapping, authenticate, authenticate, authenticate, authenticate, authenticate, digest, getAlgorithm, getDigest, getDigestSecret, getDigestSecret, getLogoutOnSessionTimeout, getPasswordDigest, getPasswordDigest, getPasswordDigestAlgorithm, getPasswordDigestRealm, getPasswordUser, getPasswordUser, getSingleSignon, init, isUserInRole, logout, setLogoutOnSessionTimeout, setPasswordDigest, setPasswordDigestAlgorithm, setPasswordDigestRealm, setSerializationHandle, stringToDigest, toString, writeReplace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
authenticate, getAlgorithm, isUserInRole, logout
public boolean isCookieSupported(java.lang.String jUseCookieAuth)
isCookieSupported
in interface CookieAuthenticator
public boolean associateCookie(java.security.Principal user, java.lang.String cookieValue)
associateCookie
in interface CookieAuthenticator
public java.security.Principal authenticateByCookie(java.lang.String cookieValue)
authenticateByCookie
in interface CookieAuthenticator