Class JWTAuthenticationProvider

java.lang.Object
com.erudika.para.server.security.JWTAuthenticationProvider
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

public class JWTAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
An authentication provider that verifies JSON web tokens. It uses the Nimbus JOSE + JWT library to validate tokens.
Author:
Alex Bogdanovski [[email protected]]
  • Constructor Details

    • JWTAuthenticationProvider

      public JWTAuthenticationProvider()
      Default constructor.
  • Method Details

    • 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