Class MongoDbAuthenticationHandler

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.apereo.cas.authentication.AuthenticationHandler, org.apereo.cas.authentication.PrePostAuthenticationHandler, org.springframework.beans.factory.DisposableBean, org.springframework.core.Ordered

    public class MongoDbAuthenticationHandler
    extends org.apereo.cas.integration.pac4j.authentication.handler.support.UsernamePasswordWrapperAuthenticationHandler
    implements java.lang.AutoCloseable, org.springframework.beans.factory.DisposableBean
    An authentication handler to verify credentials against a MongoDb instance.
    Since:
    4.2.0
    • Field Summary

      • Fields inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.UsernamePasswordWrapperAuthenticationHandler

        authenticator
      • Fields inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler

        profileCreator
      • Fields inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler

        credentialSelectionPredicate, principalFactory, servicesManager
      • Fields inherited from interface org.apereo.cas.authentication.AuthenticationHandler

        SUCCESSFUL_AUTHENTICATION_HANDLERS
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      MongoDbAuthenticationHandler​(java.lang.String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void destroy()  
      • Methods inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.UsernamePasswordWrapperAuthenticationHandler

        convertToPac4jCredentials, getAuthenticator, getCasCredentialsType, setAuthenticator, setPasswordEncoder, setPrincipalNameTransformer, supports
      • Methods inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractWrapperAuthenticationHandler

        doAuthentication, getWebContext, setProfileCreator, supports
      • Methods inherited from class org.apereo.cas.integration.pac4j.authentication.handler.support.AbstractPac4jAuthenticationHandler

        createResult, determinePrincipalIdFrom, finalizeAuthenticationHandlerResult, preFinalizeAuthenticationHandlerResult, setPrincipalAttributeId, setTypedIdUsed, storeUserProfile
      • Methods inherited from class org.apereo.cas.authentication.handler.support.AbstractPreAndPostProcessingAuthenticationHandler

        authenticate, createHandlerResult, createHandlerResult
      • Methods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler

        getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, setCredentialSelectionPredicate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apereo.cas.authentication.AuthenticationHandler

        getName, getOrder
      • Methods inherited from interface org.apereo.cas.authentication.PrePostAuthenticationHandler

        postAuthenticate, preAuthenticate
    • Constructor Detail

      • MongoDbAuthenticationHandler

        public MongoDbAuthenticationHandler​(java.lang.String name,
                                            org.apereo.cas.services.ServicesManager servicesManager,
                                            org.apereo.cas.authentication.principal.PrincipalFactory principalFactory)
    • Method Detail

      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable