Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit c8c6dd6

Browse files
committed
Fixing up some log messages in XMLCipher
git-svn-id: https://svn.apache.org/repos/asf/santuario/xml-security-java/trunk@1876183 13f79535-47bb-0310-9956-ffa450edef68
1 parent c56f20d commit c8c6dd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/xml/security/encryption/XMLCipher.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ public Key decryptKey(EncryptedKey encryptedKey, String algorithm)
14721472
}
14731473
}
14741474
if (key == null) {
1475-
LOG.error("XMLCipher::decryptKey called without a KEK and cannot resolve");
1475+
LOG.error("XMLCipher::decryptKey unable to resolve a KEK");
14761476
throw new XMLEncryptionException("empty", "Unable to decrypt without a KEK");
14771477
}
14781478
}
@@ -1768,7 +1768,7 @@ public byte[] decryptToByteArray(Element element) throws XMLEncryptionException
17681768

17691769
if (key == null) {
17701770
LOG.error(
1771-
"XMLCipher::decryptElement called without a key and unable to resolve"
1771+
"XMLCipher::decryptElement unable to resolve a decryption key"
17721772
);
17731773
throw new XMLEncryptionException("empty", "encryption.nokey");
17741774
}

0 commit comments

Comments
 (0)