Search in sources :

Example 1 with BasicDecryptionParametersResolver

use of org.opensaml.xmlsec.impl.BasicDecryptionParametersResolver in project cas by apereo.

the class SamlIdPObjectEncrypter method resolveDecryptionParameters.

/**
 * Resolve decryption parameters decryption parameters.
 *
 * @param service                 the service
 * @param decryptionConfiguration the decryption configuration
 * @return the decryption parameters
 * @throws ResolverException the resolver exception
 */
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);
}
Also used : lombok.val(lombok.val) CriteriaSet(net.shibboleth.utilities.java.support.resolver.CriteriaSet) BasicDecryptionParametersResolver(org.opensaml.xmlsec.impl.BasicDecryptionParametersResolver) DecryptionConfigurationCriterion(org.opensaml.xmlsec.criterion.DecryptionConfigurationCriterion)

Aggregations

lombok.val (lombok.val)1 CriteriaSet (net.shibboleth.utilities.java.support.resolver.CriteriaSet)1 DecryptionConfigurationCriterion (org.opensaml.xmlsec.criterion.DecryptionConfigurationCriterion)1 BasicDecryptionParametersResolver (org.opensaml.xmlsec.impl.BasicDecryptionParametersResolver)1