protected DecryptionParameters resolveDecryptionParameters(final SamlRegisteredService service,
                                                               final BasicDecryptionConfiguration decryptionConfiguration)
        throws ResolverException {
        val criteria = new CriteriaSet();
        criteria.add(new DecryptionConfigurationCriterion(decryptionConfiguration));
        return new BasicDecryptionParametersResolver().resolveSingle(criteria);
    }
Resolve decryption parameters decryption parameters.

@param service                 the service
@param decryptionConfiguration the decryption configuration
@return the decryption parameters
@throws ResolverException the resolver exception
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/enc/SamlIdPObjectEncrypter.java