protected void decryptEncryptedAssertions(final Response response, final Decrypter decrypter) {
        for (val encryptedAssertion : response.getEncryptedAssertions()) {
            try {
                val decryptedAssertion = decrypter.decrypt(encryptedAssertion);
                response.getAssertions().add(decryptedAssertion);
            } catch (final DecryptionException e) {
                logger.error("Decryption of assertion failed, continue with the next one", e);
            }
        }

    }
Decrypt encrypted assertions and add them to the assertions list of the response.

@param response  the response
@param decrypter the decrypter
pac4j-saml/src/main/java/org/pac4j/saml/sso/impl/SAML2AuthnResponseValidator.java