You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Vishal Mahajan <Vi...@Sun.COM> on 2004/03/23 12:58:27 UTC

Very High Logging Level In XMLCipher

The XMLCipher.loadEncryptedKey(Document, Element) has a very high 
logging level. If the _cipherMode is not in UNWRAP_MODE or DECRYPT_MODE 
an error is logged, something like:

    "XMLCipher unexpectedly not in UNWRAP_MODE or DECRYPT_MODE..."

I think this is not OK as loadEncryptedKey() is a like a factory method 
for generating EncryptedKey instances. This log should probably be 
removed from the code.

Thanks,

Vishal


Re: Very High Logging Level In XMLCipher

Posted by Axl Mattheus <Ax...@Sun.COM>.
I'll lower the logging level.

Ax/

Vishal Mahajan wrote:

> The XMLCipher.loadEncryptedKey(Document, Element) has a very high 
> logging level. If the _cipherMode is not in UNWRAP_MODE or 
> DECRYPT_MODE an error is logged, something like:
>
>    "XMLCipher unexpectedly not in UNWRAP_MODE or DECRYPT_MODE..."
>
> I think this is not OK as loadEncryptedKey() is a like a factory 
> method for generating EncryptedKey instances. This log should probably 
> be removed from the code.
>
> Thanks,
>
> Vishal
>
>