Class JwtAuthenticationProvider

java.lang.Object
at.letto.basespringboot.security.JwtAuthenticationProvider
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

@Component public class JwtAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
  • Field Details

    • log

      private static final org.slf4j.Logger log
    • jwtService

      private final JwtTokenService jwtService
  • Constructor Details

    • JwtAuthenticationProvider

      @Autowired public JwtAuthenticationProvider(JwtTokenService jwtService)
  • Method Details

    • init

      public void init(String secret, long jwtExpiration)
    • 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<?> authentication)
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider