Class OAuth2ClientConfiguration
-
- All Implemented Interfaces:
-
org.springframework.beans.factory.Aware,org.springframework.context.annotation.ImportAware
@EnableConfigurationProperties(value = {ClientConfigurationProperties.class})@Configuration() public final class OAuth2ClientConfiguration implements ImportAware
-
-
Constructor Summary
Constructors Constructor Description OAuth2ClientConfiguration()
-
Method Summary
Modifier and Type Method Description UnitsetImportMetadata(AnnotationMetadata meta)final OAuth2AccessTokenServiceoAuth2AccessTokenService(JwtBearerTokenResolver bearerTokenResolver, OAuth2HttpClient client)final DefaultOAuth2HttpClientoAuth2HttpClient(RestClient.Builder builder)final JwtBearerTokenResolverjwtBearerTokenResolver(TokenValidationContextHolder h)final JwtBearerTokenResolvernoopJwtBearerTokenResolver()-
-
Method Detail
-
setImportMetadata
Unit setImportMetadata(AnnotationMetadata meta)
-
oAuth2AccessTokenService
@Bean() final OAuth2AccessTokenService oAuth2AccessTokenService(JwtBearerTokenResolver bearerTokenResolver, OAuth2HttpClient client)
-
oAuth2HttpClient
@Bean()@ConditionalOnMissingBean(value = {OAuth2HttpClient.class}) final DefaultOAuth2HttpClient oAuth2HttpClient(RestClient.Builder builder)
-
jwtBearerTokenResolver
@Bean()@ConditionalOnClass(value = {TokenValidationContextHolder.class}) final JwtBearerTokenResolver jwtBearerTokenResolver(TokenValidationContextHolder h)
-
noopJwtBearerTokenResolver
@Bean()@ConditionalOnMissingBean(value = {JwtBearerTokenResolver.class})@ConditionalOnMissingClass(value = {"no.nav.security.token.support.core.context.TokenValidationContextHolder"}) final JwtBearerTokenResolver noopJwtBearerTokenResolver()
-
-
-
-