public interface SharkMessage
SharkMessengerChannel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANONYMOUS |
static java.lang.String |
ANY_RECEIVER |
static int |
ENCRYPTED_MASK |
static int |
SIGNED_MASK |
Modifier and Type | Method and Description |
---|---|
boolean |
couldBeDecrypted()
Can this message be decrypted?
|
boolean |
encrypted()
Not part of the transferred message - just a flag that indicates if this message is encrypted.
|
java.util.List<ASAPHop> |
getASAPHopsList()
A message can be received directly from a sender or it was routed.
|
byte[] |
getContent()
Content - can be encrypted and signed
|
java.sql.Timestamp |
getCreationTime()
Creation date is produced when an object is serialized.
|
java.util.Set<java.lang.CharSequence> |
getRecipients()
Recipients are always visible - the only recipient is in the unencrypted head if message
is encrypted - maybe we change this in a later version.
|
java.lang.CharSequence |
getSender()
Sender - can be encrypted and signed
|
boolean |
isLaterThan(SharkMessage message)
Compare two message what creation date is earlier.
|
boolean |
verified()
Not part of the transferred message - just a flag that indicates if this message could now
be verified.
|
static final java.lang.String ANY_RECEIVER
static final java.lang.String ANONYMOUS
static final int SIGNED_MASK
static final int ENCRYPTED_MASK
byte[] getContent() throws ASAPSecurityException
ASAPSecurityException
- if message could not be encryptedjava.lang.CharSequence getSender() throws ASAPSecurityException
ASAPSecurityException
- if message could not be encryptedjava.util.Set<java.lang.CharSequence> getRecipients()
boolean verified() throws ASAPSecurityException
ASAPSecurityException
- if message could not be encryptedboolean encrypted()
boolean couldBeDecrypted()
java.sql.Timestamp getCreationTime() throws ASAPException, ASAPSecurityException, java.io.IOException
ASAPException
java.io.IOException
ASAPSecurityException
- if message could not be encryptedboolean isLaterThan(SharkMessage message) throws ASAPException, ASAPSecurityException, java.io.IOException
message
- ASAPException
java.io.IOException
ASAPSecurityException
- if message could not be encryptedjava.util.List<ASAPHop> getASAPHopsList()