Package feast.common.auth.authentication
Class DefaultJwtAuthenticationProvider
- java.lang.Object
-
- feast.common.auth.authentication.DefaultJwtAuthenticationProvider
-
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public class DefaultJwtAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
Json Web Token Authentication Provider used to validate incoming requests to Feast Core.
-
-
Constructor Summary
Constructors Constructor Description DefaultJwtAuthenticationProvider(Map<String,String> options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication)Authenticate a request based on its Spring Security Authentication objectbooleansupports(Class<?> aClass)
-
-
-
Method Detail
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationExceptionAuthenticate a request based on its Spring Security Authentication object- Specified by:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Parameters:
authentication- Authentication object which contains a JWT to validate- Returns:
- Returns the same authentication object after authentication
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
public boolean supports(Class<?> aClass)
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
-