java.lang.Object
se.swedenconnect.opensaml.xmlsec.encryption.support.DecryptionUtils

public class DecryptionUtils extends Object
Utility class with helper methods for decryption.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Constructor Details

    • DecryptionUtils

      protected DecryptionUtils()
  • Method Details

    • createDecryptionParameters

      public static DecryptionParameters createDecryptionParameters(Credential... localCredentials)
      Utility method that sets up DecryptionParameters for a Decrypter instance.
      Parameters:
      localCredentials - the decrypter's credentials
      Returns:
      the parameters needed to instantiate a a Decrypter object
    • createKeyInfoCredentialResolver

      public static KeyInfoCredentialResolver createKeyInfoCredentialResolver(Credential... localCredentials)
      Builds a KeyInfo credential resolver to be used during decryption of a SAML object.
      Parameters:
      localCredentials - the decrypter's credentials
      Returns:
      a KeyInfoCredentialResolver instance.