protected Optional<ClientCredential> buildClientCredential(final BaseClient client, final RequestContext requestContext, final Credentials credentials) {
        LOGGER.info("Credentials are successfully authenticated using the delegated client [{}]", client.getName());
        return Optional.of(new ClientCredential(credentials, client.getName()));
    }
This is {@link DefaultDelegatedAuthenticationCredentialExtractor}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/authentication/principal/DefaultDelegatedAuthenticationCredentialExtractor.java