Class DecryptionUtils
java.lang.Object
se.swedenconnect.opensaml.xmlsec.encryption.support.DecryptionUtils
Utility class with helper methods for decryption.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DecryptionParameters
createDecryptionParameters
(Credential... localCredentials) Utility method that sets upDecryptionParameters
for aDecrypter
instance.static KeyInfoCredentialResolver
createKeyInfoCredentialResolver
(Credential... localCredentials) Builds a KeyInfo credential resolver to be used during decryption of a SAML object.
-
Constructor Details
-
DecryptionUtils
protected DecryptionUtils()
-
-
Method Details
-
createDecryptionParameters
Utility method that sets upDecryptionParameters
for aDecrypter
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.
-