Uses of Class
com.jalios.jcms.authentication.AuthenticationHandler
Packages that use AuthenticationHandler
Package
Description
Contains the core JPlatform classes.
-
Uses of AuthenticationHandler in com.jalios.jcms
Methods in com.jalios.jcms with parameters of type AuthenticationHandlerModifier and TypeMethodDescriptionvoidChannel.addAuthenticationHandler(AuthenticationHandler authHandler) Add the specifiedAuthenticationHandlerto the list of AuthenticationHandlers used by the AuthenticationManager to process users' authentication.voidChannel.removeAuthenticationHandler(AuthenticationHandler authHandler) Remove the specifiedAuthenticationHandlerfrom the list of AuthenticationHandlers used by the AuthenticationManager to process users' authentication. -
Uses of AuthenticationHandler in com.jalios.jcms.authentication
Methods in com.jalios.jcms.authentication that return types with arguments of type AuthenticationHandlerModifier and TypeMethodDescriptionClass<? extends AuthenticationHandler> AuthenticationContext.getAuthenticationHandlerClass()Retrieve theClass<? extends AuthenticationHandler>of theAuthenticationHandlerthat was used to authenticate the member for this request, by invokingAuthenticationContext.setLoggedMember(Member).static Class<? extends AuthenticationHandler> AuthenticationContext.getAuthenticationHandlerClass(javax.servlet.http.HttpServletRequest request) Retrieve theClass<? extends AuthenticationHandler>of theAuthenticationHandlerthat was used to authenticate the member for this request, by invokingAuthenticationContext.setLoggedMember(Member).AuthenticationManager.getAuthenticationHandlerSet()Retrieve the internal set ofAuthenticationHandlermanaged by the AuthenticationManager.
Modify only if you are sure of what you do...Methods in com.jalios.jcms.authentication with parameters of type AuthenticationHandlerModifier and TypeMethodDescriptionvoidAuthenticationManager.addAuthenticationHandler(AuthenticationHandler authHdlr) Add the specified AuthenticationHandler to the handlers collection already managed by the AuthenticationManager.final intAuthenticationHandler.compareTo(AuthenticationHandler authHdlr) Compare this object with the specified AuthenticationHandler for order.voidAuthenticationManager.removeAuthenticationHandler(AuthenticationHandler authHdlr) Remove the specified AuthenticationHandler from the handlers managed by the AuthenticationManager.Method parameters in com.jalios.jcms.authentication with type arguments of type AuthenticationHandlerModifier and TypeMethodDescriptionvoidAuthenticationContext.recordAuthenticationFailure(String userId, Class<? extends AuthenticationHandler> authHdlrClass) Record a failed authentication attempt, and throttle if needed.voidAuthenticationThrottleManager.recordAuthenticationFailure(String userId, AuthenticationContext ctxt, Class<? extends AuthenticationHandler> authHdlrClass) Record a failed authentication attempt.voidAuthenticationContext.throttleIfNeeded(String userId, Class<? extends AuthenticationHandler> authHdlrClass) Checks and perform throttling if it is required for the current authentication attempt.booleanAuthenticationThrottleManager.throttleIfNeeded(String userId, AuthenticationContext ctxt, Class<? extends AuthenticationHandler> authHdlrClass) Throttle an authentication attempt given specified context. -
Uses of AuthenticationHandler in com.jalios.jcms.authentication.handlers
Subclasses of AuthenticationHandler in com.jalios.jcms.authentication.handlersModifier and TypeClassDescriptionclassAuthenticates users using an "authentication key" parameter valid only for the request for which it is processed.classfinal classSave authentification made by other handlers into cookie and use it later on to re-authenticate.
You can disable this handler by modifiying property"auth-mgr.cookie-enabled".classUses the Member's delegation to allow him to change its identity to somebody else.classAuthenticates user using HTTP Authorization.
In order to make it work you are responsible to call the methodHttpBasicAuthenticationHandler.setHttpBasicAuthorizationHeader(HttpServletResponse, String)to trigger a HTTP Authorization response, the handler will deal with decoding of the next request.classAuthenticates user using HTTP Authorization.classfinal classProvide logging of the authentication process using log4j.
This authentication handler must be the first in the list of authentication handlers to be able to log authentication made by other handlers.classSave authentification made by other handlers into session and use it later on to re-authenticate.classRead the authentification from the "silent" parameter,silentLogin,silentPassword.final classAuthenticate user based on the login/password of existing member in JCMS.
Current implementation of thisAuthenticationHandler: stops the LoginChain on empty login or password.