com.echomine.jabber.msg
Class PGPEncryptedXMessage

java.lang.Object
  extended by com.echomine.jabber.JabberMessage
      extended by com.echomine.jabber.JabberJDOMMessage
          extended by com.echomine.jabber.msg.PGPEncryptedXMessage
All Implemented Interfaces:
JabberMessageParsable

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


Field Summary
 
Fields inherited from class com.echomine.jabber.JabberMessage
messageID
 
Constructor Summary
PGPEncryptedXMessage()
          constructs a default message
 
Method Summary
 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
 
Methods inherited from class com.echomine.jabber.JabberJDOMMessage
encode, getDOM, getXMLOutputter, parse, setMessageID, toString
 
Methods inherited from class com.echomine.jabber.JabberMessage
getMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PGPEncryptedXMessage

public PGPEncryptedXMessage()
constructs a default message

Method Detail

getMessageType

public int getMessageType()
Description copied from class: JabberJDOMMessage
the default message type is unknown. It doesn't mean that there is no type. It just means that there is no known message parser for this particular object.

Overrides:
getMessageType in class JabberJDOMMessage
Returns:
a message code that is unique to the message
See Also:
JabberCode

setPGPMessage

public void setPGPMessage(java.lang.String data)
sets the PGP specified data


getPGPMessage

public java.lang.String getPGPMessage()
retrieves the PGP data from the message

Returns:
the PGP data or null if there is none.


Copyright © 2001-2005 Echomine. All Rights Reserved.