|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.JabberMessage
com.echomine.jabber.JabberJDOMMessage
com.echomine.jabber.msg.PGPSignedXMessage
public class PGPSignedXMessage
Support PGP signed messages. This class will work with PGP-signed 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.
Signed messages are normally used for
There are actually three types of PGP-signed messages and this only handles two types:
detached and clearsign. If you have a copy of Gnupg
you can create a detached PGP message with the command gpg -ab filename
.
A detched PGP message begins with a '-----BEGIN PGP SIGNATURE-----' header and ends with
'-----END PGP SIGNATURE-----'. Using Gnupg you can create a clearsign PGP message with the
command gpg -clearsign filename
. Clearsign messages contain the same headers
as a detached message but the also contain a leading '-----BEGIN PGP SIGNED MESSAGE-----'
and a plaintext copy of the data that has been signed.
Current Implementation: JEP-0027 Version 1.2
Field Summary |
---|
Fields inherited from class com.echomine.jabber.JabberMessage |
---|
messageID |
Constructor Summary | |
---|---|
PGPSignedXMessage()
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 |
---|
public PGPSignedXMessage()
Method Detail |
---|
public int getMessageType()
JabberJDOMMessage
getMessageType
in class JabberJDOMMessage
JabberCode
public void setPGPMessage(java.lang.String data)
public java.lang.String getPGPMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |