Class OAuth2ResourceServerConfigurer.ProtectedResourceMetadataConfigurer
java.lang.Object
org.springframework.security.config.annotation.web.configurers.oauth2.server.resource.OAuth2ResourceServerConfigurer.ProtectedResourceMetadataConfigurer
- Enclosing class:
- OAuth2ResourceServerConfigurer<H extends HttpSecurityBuilder<H>>
public static final class OAuth2ResourceServerConfigurer.ProtectedResourceMetadataConfigurer
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionprotectedResourceMetadataCustomizer(Consumer<org.springframework.security.oauth2.server.resource.OAuth2ProtectedResourceMetadata.Builder> protectedResourceMetadataCustomizer) Sets theConsumerproviding access to theOAuth2ProtectedResourceMetadata.Builderallowing the ability to customize the claims of the Resource Server's configuration.
-
Method Details
-
protectedResourceMetadataCustomizer
public OAuth2ResourceServerConfigurer.ProtectedResourceMetadataConfigurer protectedResourceMetadataCustomizer(Consumer<org.springframework.security.oauth2.server.resource.OAuth2ProtectedResourceMetadata.Builder> protectedResourceMetadataCustomizer) Sets theConsumerproviding access to theOAuth2ProtectedResourceMetadata.Builderallowing the ability to customize the claims of the Resource Server's configuration.- Parameters:
protectedResourceMetadataCustomizer- theConsumerproviding access to theOAuth2ProtectedResourceMetadata.Builder- Returns:
- the
OAuth2ResourceServerConfigurer.ProtectedResourceMetadataConfigurerfor further configuration
-