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 org.opensaml.xmlsec.DecryptionParameters
createDecryptionParameters
(org.opensaml.security.credential.Credential... localCredentials) Utility method that sets upDecryptionParameters
for aDecrypter
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.
-
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 upDecryptionParameters
for aDecrypter
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.
-