Class SecureWebClientCustomizer
java.lang.Object
africa.absa.inception.application.SecureWebClientCustomizer
- All Implemented Interfaces:
org.springframework.boot.web.reactive.function.client.WebClientCustomizer
@Component
@ConditionalOnBean(ApplicationSecurityConfiguration.class)
public class SecureWebClientCustomizer
extends Object
implements org.springframework.boot.web.reactive.function.client.WebClientCustomizer
The SecureWebClientCustomizer class implements the callback interface that can be used to
customize the
WebClient.Builder to apply the security configuration.- Author:
- Marcus Portmann
-
Constructor Summary
ConstructorsConstructorDescriptionSecureWebClientCustomizer(ApplicationSecurityConfiguration applicationSecurityConfiguration) Constructs a new SecureWebClientCustomizer. -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder)
-
Constructor Details
-
SecureWebClientCustomizer
Constructs a new SecureWebClientCustomizer.- Parameters:
applicationSecurityConfiguration- the application security configuration
-
-
Method Details
-
customize
public void customize(org.springframework.web.reactive.function.client.WebClient.Builder webClientBuilder) - Specified by:
customizein interfaceorg.springframework.boot.web.reactive.function.client.WebClientCustomizer
-