You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2024/05/03 14:12:16 UTC
(santuario-xml-security-java) 06/06: Fixup
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch 3.0.x-fixes
in repository https://gitbox.apache.org/repos/asf/santuario-xml-security-java.git
commit 124601a135d39bee483c8d1c868e0020b7508c9d
Author: Colm O hEigeartaigh <co...@apache.org>
AuthorDate: Fri May 3 15:11:45 2024 +0100
Fixup
---
src/main/java/org/apache/xml/security/encryption/XMLCipher.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/xml/security/encryption/XMLCipher.java b/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
index 9016f720..4cfcc823 100644
--- a/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
+++ b/src/main/java/org/apache/xml/security/encryption/XMLCipher.java
@@ -1624,12 +1624,12 @@ public class XMLCipher {
String encryptionAlgorithm) throws XMLSecurityException {
if (keyInfo == null || !keyInfo.containsAgreementMethod() ) {
- LOG.log(Level.DEBUG,"EncryptedKey key does not contain AgreementMethod data");
+ LOG.debug("EncryptedKey key does not contain AgreementMethod data");
return null;
}
if (!(this.key instanceof PrivateKey)) {
- LOG.log(Level.INFO,"The EncryptedKey key is using Key agreement data, " +
+ LOG.info("The EncryptedKey key is using Key agreement data, " +
"but provided key is not a PrivateKey. Skipping Key Agreement data processing.");
// do not throw error because of the legacy reasons to allow users to resolve
// the encryption Key manually and provide the derived key to XMLCipher
@@ -1637,7 +1637,7 @@ public class XMLCipher {
return null;
}
// resolve the agreement method
- LOG.log(Level.DEBUG,"EncryptedKey key is using Key agreement data");
+ LOG.debug("EncryptedKey key is using Key agreement data");
AgreementMethod agreementMethod = keyInfo.itemAgreementMethod(0);
return XMLCipherUtil.constructRecipientKeyAgreementParameters(encryptionAlgorithm,
agreementMethod, (PrivateKey) this.key);