Amir Behnam created CXF-7393:
--------------------------------

             Summary: add message to Jwe exception.
                 Key: CXF-7393
                 URL: https://issues.apache.org/jira/browse/CXF-7393
             Project: CXF
          Issue Type: Improvement
    Affects Versions: 3.1.11
            Reporter: Amir Behnam


currently when a JWE exception is thrown this is what the log message looks 
like.

{code:title=sample 
error|theme=FadeToGrey|linenumbers=true|language=java|firstline=0001|collapse=true}
org.apache.cxf.rs.security.jose.jwe.JweException: null
        at 
org.apache.cxf.rs.security.jose.jwe.AesCbcHmacJweDecryption.validateAuthenticationTag(AesCbcHmacJweDecryption.java:61)
        at 
org.apache.cxf.rs.security.jose.jwe.AesCbcHmacJweDecryption.doDecrypt(AesCbcHmacJweDecryption.java:40)
        at 
org.apache.cxf.rs.security.jose.jwe.AbstractJweDecryption.decrypt(AbstractJweDecryption.java:52)
        at 
com.groupbyinc.security.JsonWebEncryption.decrypt(JsonWebEncryption.java:64)
        at 
com.groupbyinc.security.JsonWebEncryptionTest.testDecryptInvalidJwe(JsonWebEncryptionTest.java:86)
{code}

it would be nice if the error passed into the exception was printed out as the 
message.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to