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, wait
authenticate, requiresUserPass
public boolean isAuthenticated(javax.servlet.http.HttpSession session)
SecurityProvider
SecurityProvider
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 SecurityProvider
public boolean logout(javax.servlet.http.HttpSession session)
SecurityProvider
MultiSessionAttributeAdapter
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