'Migrating from OpenSaml 2 to OpenSaml 3.4.6

I have switched from OpenSaml 2 to OpenSaml 3.4.6. I am getting errors when calling the following code.

SecurityHelper.prepareSignatureParams(responseSignature, signingCredential, securityConfiguration, null);

The SecurityHelper class is part of the org.opensaml.xml.security package. The signature of prepareSignatureParams is the following

public static void prepareSignatureParams(Signature signature, Credential signingCredential, SecurityConfiguration config, String keyInfoGenName)

My variables that I am passing to the prepareSignatureParams method are of the following types

responseSignature is type org.opensaml.xmlsec.signature.Signature

securityConfiguration is type org.opensaml.xml.security.SecurityConfiguration

signingCredential is type org.opensaml.security.x509.BasicX509Credential

In looking at the following api https://shibboleth.net/sites/release/java-opensaml/3.4.6/apidocs/ I did not see any replacement for the SecurityHelper class



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source