public class PGPEncryptedXMessage extends JabberJDOMMessage
Support PGP-encrypted messages. This class will work with encrypted message. It's really simple because it simply contains only the encrypted data. It will not do any encryption for you. That is up to you to implement on the client level since developers use different Encryption packages to encrypt data.
The key that should be used for encryption is the public key matching the KeyID used for signing the presence received from the recipient. The actual data that is encrypted is what would be the Body of the chat message.
Current Implementation: JEP-0027 Version 1.2
messageID| Constructor and Description |
|---|
PGPEncryptedXMessage()
constructs a default message
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMessageType()
the default message type is unknown.
|
java.lang.String |
getPGPMessage()
retrieves the PGP data from the message
|
void |
setPGPMessage(java.lang.String data)
sets the PGP specified data
|
encode, getDOM, getXMLOutputter, parse, setMessageID, toStringgetMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessagespublic int getMessageType()
JabberJDOMMessagegetMessageType in class JabberJDOMMessageJabberCodepublic void setPGPMessage(java.lang.String data)
public java.lang.String getPGPMessage()
Copyright © 2001-2005 Echomine. All Rights Reserved.