|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.post.messaging.SignedPostMessage
public final class SignedPostMessage
This class is the representation of a PostMessage and it's attached signature. This class should be the one which is sent across the wire.
| Constructor Summary | |
|---|---|
SignedPostMessage(PostMessage message,
java.security.PrivateKey key)
Constructs a SignedPostMessage given the message and siganture |
|
| Method Summary | |
|---|---|
void |
dump()
|
boolean |
equals(java.lang.Object o)
|
PostMessage |
getMessage()
Returns the sender of this message. |
byte[] |
getMessageBytes()
|
byte[] |
getSignature()
Returns the signature for this message, or null if the message has not yet been signed. |
java.lang.String |
toString()
|
boolean |
verify(java.security.PublicKey key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SignedPostMessage(PostMessage message,
java.security.PrivateKey key)
throws java.io.IOException
sender - The sender of this message.
java.io.IOException| Method Detail |
|---|
public PostMessage getMessage()
public byte[] getMessageBytes()
public byte[] getSignature()
public boolean verify(java.security.PublicKey key)
public boolean equals(java.lang.Object o)
equals in class java.lang.Object
public void dump()
public java.lang.String toString()
toString in class java.lang.Object
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||