public final class JwtBearerTokenAuthenticationConverter
extends java.lang.Object
implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>
Converter that takes a Jwt and converts it into a
BearerTokenAuthentication.
In the process, it will attempt to parse either the "scope" or "scp" attribute,
whichever it finds first.
It's not intended that this implementation be configured since it is simply an adapter.
If you are using, for example, a custom JwtGrantedAuthoritiesConverter, then
it's recommended that you simply create your own Converter that delegates to
your custom JwtGrantedAuthoritiesConverter and instantiates the appropriate
BearerTokenAuthentication.| Constructor and Description |
|---|
JwtBearerTokenAuthenticationConverter() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.authentication.AbstractAuthenticationToken |
convert(org.springframework.security.oauth2.jwt.Jwt jwt) |
public JwtBearerTokenAuthenticationConverter()
public org.springframework.security.authentication.AbstractAuthenticationToken convert(org.springframework.security.oauth2.jwt.Jwt jwt)
convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>