@Bean
        public RegistrationClient registrationClient(
            final ObjectMapper objectMapper,
            @Qualifier(HttpClient.BEAN_NAME_HTTPCLIENT) final HttpClient httpClient,
            final ClientProperties client) {

            objectMapper.findAndRegisterModules()
                .registerModule(new AdminServerModule(new String[]{".*password$"}));
            var builder = new RestTemplateBuilder()
                .connectTimeout(client.getConnectTimeout())
                .readTimeout(client.getReadTimeout())
                .customizers(template -> {
                    val requestFactory = new HttpComponentsClientHttpRequestFactory(httpClient.wrappedHttpClient());
                    template.setRequestFactory(requestFactory);
                });
            if (client.getUsername() != null && client.getPassword() != null) {
                builder = builder.basicAuthentication(client.getUsername(), client.getPassword());
            }

            val restTemplate = builder.build();
            return new BlockingRegistrationClient(restTemplate);
        }
This is {@link CasSpringBootAdminAutoConfiguration}.

@author Misagh Moayyed
@since 6.0.0
support/cas-server-support-bootadmin/src/main/java/org/apereo/cas/config/CasSpringBootAdminAutoConfiguration.java