Class JwtTokenAuthenticationProvider
java.lang.Object
com.cumulocity.microservice.security.token.JwtTokenAuthenticationProvider
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
,org.springframework.security.authentication.AuthenticationProvider
public class JwtTokenAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.context.MessageSourceAware
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.support.MessageSourceAccessor
-
Constructor Summary
ConstructorDescriptionJwtTokenAuthenticationProvider
(org.springframework.core.env.Environment environment, JwtAuthenticatedTokenCache tokenCache) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) void
setMessageSource
(org.springframework.context.MessageSource messageSource) boolean
-
Field Details
-
messages
protected org.springframework.context.support.MessageSourceAccessor messages
-
-
Constructor Details
-
JwtTokenAuthenticationProvider
public JwtTokenAuthenticationProvider(org.springframework.core.env.Environment environment, JwtAuthenticatedTokenCache tokenCache)
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) - Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource) - Specified by:
setMessageSource
in interfaceorg.springframework.context.MessageSourceAware
-