Class ShogunCoreAuthenticationProvider

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

    public class ShogunCoreAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    Author:
    Nils Bühner
    • Constructor Detail

      • ShogunCoreAuthenticationProvider

        public ShogunCoreAuthenticationProvider()
    • Method Detail

      • authenticate

        @Transactional(value="transactionManager",
                       readOnly=true)
        public org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
                                                                      throws org.springframework.security.core.AuthenticationException
        This method has to be Transactional to allow that associated entities can be fetched lazily.
        Specified by:
        authenticate in interface org.springframework.security.authentication.AuthenticationProvider
        Throws:
        org.springframework.security.core.AuthenticationException
        See Also:
        AuthenticationProvider.authenticate(org.springframework.security.core.Authentication)
      • supports

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

        public org.springframework.security.crypto.password.PasswordEncoder getPasswordEncoder()
        Returns:
        the passwordEncoder
      • setPasswordEncoder

        public void setPasswordEncoder​(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
        Parameters:
        passwordEncoder - the passwordEncoder to set