Class XsuaaResourceServerJwkAutoConfiguration

java.lang.Object
com.sap.cloud.security.xsuaa.autoconfiguration.XsuaaResourceServerJwkAutoConfiguration

@Configuration @ConditionalOnClass(org.springframework.security.oauth2.jwt.Jwt.class) @ConditionalOnProperty(prefix="spring.xsuaa", name="auto", havingValue="true", matchIfMissing=true) @AutoConfigureBefore(org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration.class) public class XsuaaResourceServerJwkAutoConfiguration extends Object
Auto-configuration that exposes a JwtDecoder, which has the standard Spring Security Jwt validators as well as the XSUAA-specific validators.

Activates when there is a bean of type Jwt configured in the context.

can be disabled with @EnableAutoConfiguration(exclude={XsuaaResourceServerJwkAutoConfiguration.class}) or with property spring.xsuaa.auto = false

  • Constructor Details

    • XsuaaResourceServerJwkAutoConfiguration

      public XsuaaResourceServerJwkAutoConfiguration()
  • Method Details

    • xsuaaJwtDecoder

      @Bean @ConditionalOnBean({XsuaaServiceConfiguration.class,org.springframework.web.client.RestOperations.class}) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnMissingBean public org.springframework.security.oauth2.jwt.JwtDecoder xsuaaJwtDecoder(XsuaaServiceConfiguration xsuaaServiceConfiguration, org.springframework.web.client.RestOperations xsuaaRestOperations)