| Package | Description |
|---|---|
| org.nhindirect.stagent |
Security and trust agent interface and core messaging and routing structures.
|
| org.nhindirect.stagent.cryptography |
NHIN Direct cryptography.
|
| org.nhindirect.stagent.mail |
NHIN Direct mail structures and message wrapping logic.
|
| org.nhindirect.stagent.mail.notifications |
Message Disposition Notifications implementation: RFC 3798
|
| Modifier and Type | Method and Description |
|---|---|
Message |
MessageEnvelope.getMessage()
Gets the mime message wrapped in the envelope.
|
Message |
DefaultMessageEnvelope.getMessage()
Gets the mime message wrapped in the envelope.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultMessageEnvelope.setMessage(Message message)
Sets the mime message wrapped in the envelope.
|
| Constructor and Description |
|---|
DefaultMessageEnvelope(Message message)
Constructs an envelope from a message.
|
DefaultMessageEnvelope(Message message,
NHINDAddressCollection recipients,
NHINDAddress sender)
Constructs an envelope from a message, a list of recipients, and a sender.
|
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.
|
OutgoingMessage(Message message)
Create an outgoing message from a mime message.
|
OutgoingMessage(Message message,
NHINDAddressCollection recipients,
NHINDAddress sender)
Create an outgoing message from a mime message overriding the routing headers.
|
| Modifier and Type | Method and Description |
|---|---|
MimeEntity |
SMIMECryptographerImpl.decrypt(Message message,
X509CertificateEx decryptingCertificate)
Decrypts a message with the provided certificates private key.
|
MimeEntity |
Cryptographer.decrypt(Message message,
X509CertificateEx decryptingCertificate)
Decrypts a message with the provided certificates private key.
|
SignedEntity |
SMIMECryptographerImpl.sign(Message message,
Collection<X509Certificate> signingCertificates) |
SignedEntity |
Cryptographer.sign(Message message,
Collection<X509Certificate> signingCertificates) |
SignedEntity |
SMIMECryptographerImpl.sign(Message message,
X509Certificate signingCertificate)
Signs a message with the provided certificate.
|
SignedEntity |
Cryptographer.sign(Message message,
X509Certificate signingCertificate)
Signs a message with the provided certificate.
|
| Modifier and Type | Method and Description |
|---|---|
static Message |
WrappedMessage.create(Message message,
String[] headersToCopy)
Wraps a messaging into a new message by creating a message wrapper, copying only desired headers into the wrapper, and pushing the entire
original message (including headers) into the body of the wrapper.
|
static Message |
WrappedMessage.create(String message,
String[] headersToCopy)
Wraps a messaging (represented in a raw string) into a new message by creating a message wrapper, copying only desired headers into the wrapper,
and pushing the entire original message (including headers) into the body of the wrapper.
|
static Message |
WrappedMessage.extract(Message message)
Extracts the wrapped message from the wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
static Message |
WrappedMessage.create(Message message,
String[] headersToCopy)
Wraps a messaging into a new message by creating a message wrapper, copying only desired headers into the wrapper, and pushing the entire
original message (including headers) into the body of the wrapper.
|
static Message |
WrappedMessage.extract(Message message)
Extracts the wrapped message from the wrapper.
|
static boolean |
WrappedMessage.isWrapped(Message message)
Determines if a message is wrapped.
|
| Modifier and Type | Class and Description |
|---|---|
class |
NotificationMessage
Represents a message disposition notification (MDN) sent to a message sender, as per RFC 3798
|
| Modifier and Type | Method and Description |
|---|---|
static NotificationMessage |
NotificationMessage.createNotificationFor(Message message,
Notification notification)
Takes a message and constructs an MDN.
|
static NotificationMessage |
NotificationHelper.createNotificationMessage(Message message,
javax.mail.internet.InternetAddress from,
Notification notification)
Creates an MDN Notification message for the given message
|
static Collection<NotificationMessage> |
NotificationHelper.createNotificationMessages(Message message,
Collection<javax.mail.internet.InternetAddress> senders,
NotificationCreator notificationCreator)
Creates a notification message (MDN) for the given message to the senders.
|
static String |
NotificationHelper.getNotificationDestination(Message message)
Gets the value of the Disposition-Notification-To header, which indicates where
the original UA requested notification be sent.
|
static Collection<javax.mail.internet.InternetAddress> |
NotificationHelper.getNotificationDestinationAddresses(Message message)
Gets the mail addresses contained in the Disposition-Notification-To header, which indicates where
the original UA requested notification be sent.
|
static boolean |
NotificationHelper.hasNotificationRequest(Message message)
Tests if this message has requested MDN notification.
|
static boolean |
NotificationHelper.isMDN(Message message)
Tests if this message is an MDN
|
static void |
NotificationHelper.requestNotification(Message message)
Sets the header values for this message to request message disposition notification.
|
static boolean |
NotificationHelper.shouldIssueNotification(Message message)
Deprecated.
as of version 1.1.
The Direct Project model infers that a notification message should be sent regardless if
a notification request is requested. The gateway agent model should now determine whether or not to send a notification
based on the following criteria:
1) A preference in the gateway indicates that the agent/gateway should send notifications.
2) This message is not a MDN messages. This can be determined by calling
NotificationHelper.isMDN(Message). |
Copyright © 2010-2016 NHIN Direct. All Rights Reserved.