|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.DefaultMessageEnvelope
org.nhindirect.stagent.IncomingMessage
public class IncomingMessage
Incoming messages are specific types of MessageEnvelope that have been signed and encrypted.
| Constructor Summary | |
|---|---|
IncomingMessage(Message message)
Constructs an incoming envelope from a message. |
|
IncomingMessage(Message message,
NHINDAddressCollection recipients,
NHINDAddress sender)
Constructs an incoming envelope from a message, a list of recipients, and a sender. |
|
IncomingMessage(String message)
Constructs an incoming envelope from a message represented by a raw string.. |
|
IncomingMessage(String message,
NHINDAddressCollection recipients,
NHINDAddress sender)
Constructs an incoming envelope from a message represented as a raw string, a list of recipients, and a sender. |
|
| Method Summary | |
|---|---|
Collection<DefaultMessageSignatureImpl> |
getSenderSignatures()
Gets the collection of individual signers of the message. |
org.bouncycastle.cms.CMSSignedData |
getSignature()
Gets the message signature data. |
boolean |
hasSenderSignatures()
Indicates if the message has signers. |
boolean |
hasSignatures()
Indicates if the message has signature. |
void |
setSenderSignatures(Collection<DefaultMessageSignatureImpl> senderSignatures)
Sets the collection of signers of a message. |
void |
setSignature(org.bouncycastle.cms.CMSSignedData sig)
Sets the message signature data. |
| Methods inherited from class org.nhindirect.stagent.DefaultMessageEnvelope |
|---|
ensureRecipientsCategorizedByDomain, getAgent, getDomainRecipients, getMessage, getOtherRecipients, getRecipients, getRejectedRecipients, getSender, hasDomainRecipients, hasOtherRecipients, hasRecipients, hasRejectedRecipients, serializeMessage, setAgent, setMessage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IncomingMessage(Message message)
message - The incoming message.public IncomingMessage(String message)
message - The incoming message.
@Inject
public IncomingMessage(Message message,
NHINDAddressCollection recipients,
NHINDAddress sender)
message - The incoming message.recipients - A collection of addresses that denote the recipients of the message.sender - The original sender of the message.
public IncomingMessage(String message,
NHINDAddressCollection recipients,
NHINDAddress sender)
message - The incoming message.recipients - A collection of addresses that denote the recipients of the message.sender - The original sender of the message.| Method Detail |
|---|
public org.bouncycastle.cms.CMSSignedData getSignature()
public void setSignature(org.bouncycastle.cms.CMSSignedData sig)
value - The message signature data.public boolean hasSignatures()
public Collection<DefaultMessageSignatureImpl> getSenderSignatures()
public void setSenderSignatures(Collection<DefaultMessageSignatureImpl> senderSignatures)
senderSignatures - The collection of signers of a message.public boolean hasSenderSignatures()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||