Package com.azure.spring.aad.webapi
Class AADResourceServerConfiguration
- java.lang.Object
-
- com.azure.spring.aad.webapi.AADResourceServerConfiguration
-
@Configuration(proxyBeanMethods=false) @Conditional(ResourceServerCondition.class) public class AADResourceServerConfiguration extends Object
The configuration will not be activated if no
By default, creating a JwtDecoder through JwkKeySetUri will be auto-configured.BearerTokenAuthenticationTokenclass provided.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAADResourceServerConfiguration.DefaultAADResourceServerWebSecurityConfigurerAdapterDefault configuration class for using AAD authentication and authorization.
-
Constructor Summary
Constructors Constructor Description AADResourceServerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>>createDefaultValidator()Creates a default validator.org.springframework.security.oauth2.jwt.JwtDecoderjwtDecoder()Use JwkKeySetUri to create JwtDecoder
-
-
-
Method Detail
-
jwtDecoder
@Bean @ConditionalOnMissingBean(org.springframework.security.oauth2.jwt.JwtDecoder.class) public org.springframework.security.oauth2.jwt.JwtDecoder jwtDecoder()
Use JwkKeySetUri to create JwtDecoder- Returns:
- Get the jwtDecoder instance.
-
createDefaultValidator
public List<org.springframework.security.oauth2.core.OAuth2TokenValidator<org.springframework.security.oauth2.jwt.Jwt>> createDefaultValidator()
Creates a default validator.- Returns:
- a default validator
-
-