Class AdminAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider

    public class AdminAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    This Authentication provider extends the standard LDAuthenticationProvider but in addition it is able to checks if the provided password matches the context property 'adminpswd' in cases when the database is not available or the max concurrent sessions number is reached.
    Since:
    7.5
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • AdminAuthenticationProvider

        public AdminAuthenticationProvider()
    • Method Detail

      • authenticate

        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
        Throws:
        org.springframework.security.core.AuthenticationException
      • supports

        public boolean supports​(Class<?> arg0)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider