Class NetgrifAuthenticationProvider

  • All Implemented Interfaces:
    org.springframework.security.authentication.AuthenticationProvider
    Direct Known Subclasses:
    NetgrifBasicAuthenticationProvider, NetgrifLdapAuthenticationProvider

    public abstract class NetgrifAuthenticationProvider
    extends java.lang.Object
    implements org.springframework.security.authentication.AuthenticationProvider
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)  
      protected java.lang.String getClientIP()  
      org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(java.lang.String username)  
      abstract boolean supports​(java.lang.Class<?> authentication)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • userDetailsService

        @Autowired
        protected org.springframework.security.core.userdetails.UserDetailsService userDetailsService
      • request

        @Autowired
        protected javax.servlet.http.HttpServletRequest request
      • publisher

        @Autowired
        protected org.springframework.context.ApplicationEventPublisher publisher
    • Constructor Detail

      • NetgrifAuthenticationProvider

        public NetgrifAuthenticationProvider()
    • Method Detail

      • loadUserByUsername

        public org.springframework.security.core.userdetails.UserDetails loadUserByUsername​(java.lang.String username)
                                                                                     throws org.springframework.security.core.userdetails.UsernameNotFoundException
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException
      • authenticate

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

        public abstract boolean supports​(java.lang.Class<?> authentication)
        Specified by:
        supports in interface org.springframework.security.authentication.AuthenticationProvider
      • getClientIP

        protected java.lang.String getClientIP()