Class ShogunCoreAuthenticationProvider

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

    public class ShogunCoreAuthenticationProvider
    extends java.lang.Object
    implements org.springframework.security.authentication.AuthenticationProvider
    Author:
    Nils Bühner
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.security.core.Authentication authenticate​(org.springframework.security.core.Authentication authentication)
      This method has to be Transactional to allow that associated entities can be fetched lazily.
      org.springframework.security.crypto.password.PasswordEncoder getPasswordEncoder()  
      void setPasswordEncoder​(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)  
      boolean supports​(java.lang.Class<?> authentication)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.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