Class TokenAuthenticationProvider

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

    public class TokenAuthenticationProvider
    extends Object
    implements org.springframework.security.authentication.AuthenticationProvider
    AuthenticationProvider that uses the TokenService and expects a RestAuthenticationToken
    • Constructor Detail

      • TokenAuthenticationProvider

        public TokenAuthenticationProvider​(TokenService tokenService,
                                           org.springframework.security.core.userdetails.UserDetailsChecker userDetailsChecker)
    • Method Detail

      • authenticate

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

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