@Override
    public List<AuthenticationHandler> buildInternal(final TenantDefinition tenantDefinition,
                                                     final ConfigurationPropertiesBindingContext<CasConfigurationProperties> bindingContext) {

        if (bindingContext.containsBindingFor(RestAuthenticationProperties.class)) {
            val casProperties = bindingContext.value();
            return casProperties
                .getAuthn()
                .getRest()
                .stream()
                .map(prop -> {
                    val handler = new RestAuthenticationHandler(servicesManager,
                        principalFactory, prop, applicationContext, httpClient);
                    return handler.markDisposable();
                })
                .toList();
        }
        return List.of();
    }
This is {@link TenantRestAuthenticationHandlerBuilder}.

@author Misagh Moayyed
@since 7.3.0
support/cas-server-support-rest-authentication/src/main/java/org/apereo/cas/adaptors/rest/TenantRestAuthenticationHandlerBuilder.java