I realize that it is an interface--I was just speaking generally about JMS messages.
I was first hoping that the providers made their implementations Serializable (JbossMQ impl is, but SwiftMQ's is not...), then I could just wrap it up in a SignedObject and put it in an ObjectMessage, however, as you mentioned this depends on the provider making their message impl Serializable. The point I'm trying to get to is the ability to crypt the message properties as well as the body and then resend the whole thing as a BytesMessage (or StreamMessage). Nathan -----Original Message----- From: Andreas Mueller [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 1:32 PM To: [EMAIL PROTECTED] Subject: [developers] Encrypting & signing all message types > I am charged with finding a JMS implementation independent (we're > building > this on SwiftMQ, but would like to stay within spec) mechanism for > supporting the encryption and digital signing of any and all messages > (javax.jms.Message and all its subclasses) using JCE 1.2. I can easily > make > this happen for the body of text messages, but I'd like to be able to > encrypt the whole message object. My first thought was to simply use > javax.crypto.SignedObject but I found that javax.jms.Message is not > Seraliazable. javax.jms.Message is an interface. The impl is provider dependent. You cannot crypt the whole message. In SwiftMQ it contains routing infos and some other internals. You should just crypt the message content of the specifiy message type or just send a signed object within an ObjectMessage. -- Andreas Mueller, IIT GmbH, Bremen/Germany, http://www.iit.de SwiftMQ - JMS Enterprise Messaging System, http://www.swiftmq.com ------------------------------------------------------ SwiftMQ developers mailing list * http://www.swiftmq.com To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and write in the body of your message: UNSUBSCRIBE developers <your-email-address> Archive: http://www.mail-archive.com/[email protected]/ ------------------------------------------------------ SwiftMQ developers mailing list * http://www.swiftmq.com To unsubscribe from this list, send an eMail to [EMAIL PROTECTED] and write in the body of your message: UNSUBSCRIBE developers <your-email-address> Archive: http://www.mail-archive.com/[email protected]/
