public class JWTBearerAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider
Constructor and Description |
---|
JWTBearerAuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication)
Try to validate the client credentials by parsing and validating the JWT.
|
boolean |
supports(Class<?> authentication)
We support
JWTBearerAssertionAuthenticationToken s only. |
public JWTBearerAuthenticationProvider()
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
authenticate
in interface org.springframework.security.authentication.AuthenticationProvider
org.springframework.security.core.AuthenticationException
public boolean supports(Class<?> authentication)
JWTBearerAssertionAuthenticationToken
s only.supports
in interface org.springframework.security.authentication.AuthenticationProvider
Copyright © 2018. All rights reserved.