Package com.jalios.jcms.authentication
-
Class Summary Class Description AuthenticationContext Object used byAuthenticationHandler
when implementingAuthenticationHandler.login(AuthenticationContext)
orAuthenticationHandler.logout(AuthenticationContext)
Use the AuthenticationContext to : retrieve informations required to perform the authentication (request, response, login..AuthenticationHandler An AuthenticationHandler is an object that perform user authentification.
JCMS manages a list of AuthenticationHandler sorted using the natural order provided by this abstract class using the order parameter of the constructor.
Use this order parameter to modify the position of your handler in the authentication chain.
Override one or both of the following methods to provide your own authentication mecanism :AuthenticationHandler.login(AuthenticationContext)
AuthenticationHandler.logout(AuthenticationContext)
When implementing any of those method, make sure you either call the super method or either invoke the chain yourself, NOT BOTH!
TheAuthenticationHandler.loadProperties()
method can be overridden to load/reload properties as needed.AuthenticationManager This singleton manages all the authentication process in JCMS.
It is responsible to store and invoke all theAuthenticationHandler
.AuthenticationThrottleManager This singleton manages authentication throttling.LoginResult Internal class used by JCMS to return the informations available after a call to the login procedure. -
Error Summary Error Description AuthenticationThrottledError Error thrown byAuthenticationContext.throttleIfNeeded(String, Class)
to interrupt authentication chain when throttling is required.