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 Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.opensaml.xmlsec.DecryptionParameters
    createDecryptionParameters(org.opensaml.security.credential.Credential... localCredentials)
    Utility method that sets up DecryptionParameters for a Decrypter instance.
    static org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver
    createKeyInfoCredentialResolver(org.opensaml.security.credential.Credential... localCredentials)
    Builds a KeyInfo credential resolver to be used during decryption of a SAML object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DecryptionUtils

      protected DecryptionUtils()
  • Method Details

    • createDecryptionParameters

      public static org.opensaml.xmlsec.DecryptionParameters createDecryptionParameters(org.opensaml.security.credential.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 Decrypter object
    • createKeyInfoCredentialResolver

      public static org.opensaml.xmlsec.keyinfo.KeyInfoCredentialResolver createKeyInfoCredentialResolver(org.opensaml.security.credential.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.