public abstract class AbstractSecurityProvider extends java.lang.Object implements SecurityProvider
isAuthenticated(HttpSession) and
logout(HttpSession).SecurityProvider.SecurityProviderDeniedAuthentication| Constructor and Description |
|---|
AbstractSecurityProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAuthenticated(javax.servlet.http.HttpSession session)
If user supplied a value session, this passes that in so the
SecurityProvider
can check whether the user has previously authenticated, e.g. |
boolean |
logout(javax.servlet.http.HttpSession session)
Will get invoked on explicit REST API callback.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, requiresUserPasspublic boolean isAuthenticated(javax.servlet.http.HttpSession session)
SecurityProviderSecurityProvider
can check whether the user has previously authenticated, e.g. via an HttpSession.setAttribute(String, Object)
done by SecurityProvider.authenticate(HttpServletRequest, Supplier, String, String).
Note that this will be the MultiSessionAttributeAdapter.getPreferredSession().
If the user didn't request a session or they requested a session which is not known here, the argument will be null.
isAuthenticated in interface SecurityProviderpublic boolean logout(javax.servlet.http.HttpSession session)
SecurityProviderMultiSessionAttributeAdapter will be passed,
just as for other methods here.
Implementations here may remove any provider-specific attributes which cache authentication (although the session will be invalidated so that may be overkill).
logout in interface SecurityProvider