Class OAuth2ResourceServerConfigurer.JwtConfigurer
java.lang.Object
com.codename1.backend.security.OAuth2ResourceServerConfigurer.JwtConfigurer
- Enclosing class:
OAuth2ResourceServerConfigurer
How the JWTs of a resource server are verified and read.
http.oauth2ResourceServer(oauth2 -> oauth2.jwt(jwt -> jwt
.decoder(DefaultJwtDecoder.withPublicKey(key).build())
.jwtAuthenticationConverter(converter)));
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationManager(AuthenticationManager authenticationManager) What authenticates a token, in place of everything else here.decoder(JwtDecoder decoder) The decoder, in place of the application's bean and the properties.Verifies with the keys published at this address, accepting RS256.jwtAuthenticationConverter(Converter<Jwt, ? extends AbstractAuthenticationToken> converter) What makes an authentication of a verified token: its authorities and its name.
-
Method Details
-
decoder
The decoder, in place of the application's bean and the properties. -
jwkSetUri
Verifies with the keys published at this address, accepting RS256. -
jwtAuthenticationConverter
public OAuth2ResourceServerConfigurer.JwtConfigurer jwtAuthenticationConverter(Converter<Jwt, ? extends AbstractAuthenticationToken> converter) What makes an authentication of a verified token: its authorities and its name. SeeJwtAuthenticationConverter. -
authenticationManager
public OAuth2ResourceServerConfigurer.JwtConfigurer authenticationManager(AuthenticationManager authenticationManager) What authenticates a token, in place of everything else here.
-