private SignatureTrustEngine buildSignatureTrustEngine(final WsFederationConfiguration wsFederationConfiguration) throws Exception {
        val providers = WsFederationCertificateProvider.getProvider(wsFederationConfiguration, openSamlConfigBean);
        val signingWallet = providers.getSigningCredentials();
        LOGGER.debug("Building signature trust engine based on the following signing certificates:");
        signingWallet.forEach(credential -> LOGGER.debug("Credential entity id [{}] with public key [{}]", credential.getEntityId(), credential.getPublicKey()));

        val resolver = new StaticCredentialResolver(signingWallet);
        val keyResolver = new StaticKeyInfoCredentialResolver(signingWallet);
        return new ExplicitKeySignatureTrustEngine(resolver, keyResolver);
    }
Get the relying party id for a service.

@param service       the service to get an id for
@param configuration the configuration
@return relying party id
support/cas-server-support-wsfederation/src/main/java/org/apereo/cas/support/wsfederation/WsFederationHelper.java