Class JwtConverterAutoConfiguration

java.lang.Object
org.bremersee.spring.boot.autoconfigure.security.authentication.JwtConverterAutoConfiguration

@AutoConfiguration(before={org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration.class}) @ConditionalOnClass(name={"org.bremersee.spring.security.oauth2.server.resource.authentication.JsonPathJwtConverter","org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter"}) @ConditionalOnProperty(prefix="spring.security.oauth2.resourceserver.jwt", name="jwk-set-uri") @EnableConfigurationProperties(AuthenticationProperties.class) public class JwtConverterAutoConfiguration extends Object
The jwt converter autoconfiguration.
Author:
Christian Bremer
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instantiates a new Jwt converter auto configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Init.
    org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>
    jwtConverter(org.springframework.beans.factory.ObjectProvider<org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper> mapper)
    Creates jwt converter.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JwtConverterAutoConfiguration

      public JwtConverterAutoConfiguration(AuthenticationProperties properties)
      Instantiates a new Jwt converter auto configuration.
      Parameters:
      properties - the properties
  • Method Details

    • init

      @EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
      Init.
    • jwtConverter

      @ConditionalOnMissingBean(org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationConverter.class) @Bean public org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken> jwtConverter(org.springframework.beans.factory.ObjectProvider<org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper> mapper)
      Creates jwt converter.
      Parameters:
      mapper - the mapper
      Returns:
      the converter