Module com.erudika.para.server
Package com.erudika.para.server.security
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) boolean
-
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 interfaceorg.springframework.security.authentication.AuthenticationProvider
-
supports
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-