|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.DefaultNHINDAgent
public class DefaultNHINDAgent
Default agent implementation.
| Constructor Summary | |
|---|---|
DefaultNHINDAgent(java.util.Collection<java.lang.String> domains,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors)
Constructs an agent with a list of domains, certificate stores, and a trust anchor store. |
|
DefaultNHINDAgent(java.util.Collection<java.lang.String> domains,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors,
TrustModel trustModel,
Cryptographer cryptographer)
Constructs an agent with a list of domain, certificate services, and trust anchor store. |
|
DefaultNHINDAgent(java.util.Collection<java.lang.String> domains,
CertificateResolver privateCerts,
java.util.Collection<CertificateResolver> publicCerts,
TrustAnchorResolver anchors,
TrustModel trustModel,
Cryptographer cryptographer)
Constructs an agent with a list of domains, certificate stores, and a trust anchor store. |
|
DefaultNHINDAgent(java.lang.String domain,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors)
Constructs an agent with a domain, certificate stores, and a trust anchor store. |
|
DefaultNHINDAgent(java.lang.String domain,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors,
TrustModel trustModel,
Cryptographer cryptographer)
Constructs an agent with domain, certificate services, and trust anchor store. |
|
| Method Summary | |
|---|---|
Cryptographer |
getCryptographer()
Gets the Cryptographer used by the agent to perform cryptography operations. |
java.util.Collection<java.lang.String> |
getDomains()
Gets the list of domains that the agent is serving. |
TrustEnforcementStatus |
getMinTrustRequirement()
Gets the minimum trust status applied to messages by the agent. |
CertificateResolver |
getPrivateCertResolver()
Gets the certificate store used to decrypt and sign messages. |
CertificateResolver |
getPublicCertResolver()
Deprecated. Use { getPublicCertResolvers() |
java.util.Collection<CertificateResolver> |
getPublicCertResolvers()
Gets the certificate stores used to encrypt messages and validate signatures. |
TrustAnchorResolver |
getTrustAnchors()
Gets the certificate store that contains the certificate anchors that validate if certificates are trusted. |
boolean |
isEncryptMessages()
Indicates if messages are required to be encrypted in the agent. |
boolean |
isWrappingEnabled()
Indicates if the agent automatically wraps messages into RFC822 envelopes for hiding headers. |
IncomingMessage |
processIncoming(IncomingMessage message)
Processes a pre-enveloped message. |
IncomingMessage |
processIncoming(MessageEnvelope envelope)
Processes a pre-enveloped message. |
IncomingMessage |
processIncoming(javax.mail.internet.MimeMessage msg)
Processes an incoming mime message. |
IncomingMessage |
processIncoming(java.lang.String messageText)
Processes an incoming message represented by a raw string. |
IncomingMessage |
processIncoming(java.lang.String messageText,
NHINDAddressCollection recipients,
NHINDAddress sender)
Processes an incoming message represented by a raw string. |
OutgoingMessage |
processOutgoing(MessageEnvelope envelope)
Processes an outgoing pre-enveloped message. |
OutgoingMessage |
processOutgoing(OutgoingMessage message)
Processes an outgoing pre-enveloped message. |
OutgoingMessage |
processOutgoing(java.lang.String messageText)
Processes an outgoing message represented by a raw string. |
OutgoingMessage |
processOutgoing(java.lang.String messageText,
NHINDAddressCollection recipients,
NHINDAddress sender)
Processes an outgoing message represented by a raw string. |
void |
setCryptographer(Cryptographer _cryptographer)
|
void |
setEncryptMessages(boolean value)
Sets if messages are required to be encrypted in the agen |
void |
setEventListener(NHINDAgentEventListener listener)
Sets the event listener that will receive notifications at different stages of message processing. |
void |
setMinTrustRequirement(TrustEnforcementStatus value)
Sets the minimum trust status applied to messages by the agent. |
void |
setWrappingEnabled(boolean wrappingEnabled)
Sets the auto message wrapping feature of the agent. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultNHINDAgent(java.lang.String domain,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors)
domain - The domain that this agent will be serving.internalCerts - A certificate store for messages originating internally. The store contains certificates that have access to private keys for decryption and
signing messages.externalCerts - A certificate store for incoming messages. The store contains public certificates for message signature validation and encryption.trustSettings - A certificate store for certificate anchors. Certificate anchors are certificates that can validate the authenticity of
a certificate. They are also used by the agent to determine if a certificate is trusted by the system.
public DefaultNHINDAgent(java.util.Collection<java.lang.String> domains,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors)
domain - A list of domains that this agent will be serving.internalCerts - A certificate store for messages originating internally. The store contains certificates that have access to private keys for decryption and
signing messages.externalCerts - A certificate store for incoming messages. The store contains public certificates for message signature validation and encryption.trustSettings - A certificate store for certificate anchors. Certificate anchors are certificates that can validate the authenticity of
a certificate. They are also used by the agent to determine if a certificate is trusted by the system.
public DefaultNHINDAgent(java.lang.String domain,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors,
TrustModel trustModel,
Cryptographer cryptographer)
domain - The domain that this agent will be serving.internalCerts - A certificate store for messages originating internally. The store contains certificates that have access to private keys for decryption and
signing messages.externalCerts - A certificate store for incoming messages. The store contains public certificates for message signature validation and encyprtion.trustSettings - A certificate store for certificate anchors. Certificate anchors are certificates that can validate the authenticity of
a certificate. They are also used by the agent to determine if a certificate is trusted by the system.A - trust model implementation that asserts the if a message is trusted.A - cryptography implementation used to sign, encrypt, and decrypt messages.
@Inject
public DefaultNHINDAgent(java.util.Collection<java.lang.String> domains,
CertificateResolver privateCerts,
java.util.Collection<CertificateResolver> publicCerts,
TrustAnchorResolver anchors,
TrustModel trustModel,
Cryptographer cryptographer)
public DefaultNHINDAgent(java.util.Collection<java.lang.String> domains,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors,
TrustModel trustModel,
Cryptographer cryptographer)
domain - A list of domains that this agent will be serving.internalCerts - A certificate store for messages originating internally. The store contains certificates that have access to private keys for decryption and
signing messages.externalCerts - A certificate store for incoming messages. The store contains public certificates for message signature validation and encyprtion.trustSettings - A certificate store for certificate anchors. Certificate anchors are certificates that can validate the authenticity of
a certificate. They are also used by the agent to determine if a certificate is trusted by the system.A - trust model implementation that asserts the if a message is trusted.A - cryptography implementation used to sign, encrypt, and decrypt messages.| Method Detail |
|---|
public java.util.Collection<java.lang.String> getDomains()
getDomains in interface NHINDAgentpublic Cryptographer getCryptographer()
public boolean isEncryptMessages()
public void setEncryptMessages(boolean value)
value - True if messages are required to be encrypted in the agent. False otherwise.public boolean isWrappingEnabled()
public void setWrappingEnabled(boolean wrappingEnabled)
wrappingEnabled - public CertificateResolver getPublicCertResolver()
getPublicCertResolvers()
public java.util.Collection<CertificateResolver> getPublicCertResolvers()
public CertificateResolver getPrivateCertResolver()
public TrustAnchorResolver getTrustAnchors()
public TrustEnforcementStatus getMinTrustRequirement()
public void setMinTrustRequirement(TrustEnforcementStatus value)
value - The minimum trust status applied to messages by the agent.public void setEventListener(NHINDAgentEventListener listener)
listener - A concrete implementation of an NHINDAgentEventListener.public void setCryptographer(Cryptographer _cryptographer)
public IncomingMessage processIncoming(java.lang.String messageText)
processIncoming in interface NHINDAgentmessageText - The raw contents of the incoming message that will be processed.
public IncomingMessage processIncoming(java.lang.String messageText,
NHINDAddressCollection recipients,
NHINDAddress sender)
processIncoming in interface NHINDAgentmessageText - The raw contents of the incoming message that will be processed.recipients - The recipients of the message. This overrides the routing headers in the message.sender - The sender of the message. This overrides the to FROM routing header in the message.
public IncomingMessage processIncoming(MessageEnvelope envelope)
processIncoming in interface NHINDAgentenvelope - A message envelope containing the incoming message.
public IncomingMessage processIncoming(javax.mail.internet.MimeMessage msg)
processIncoming in interface NHINDAgentmsg - The incoming mime message.
public IncomingMessage processIncoming(IncomingMessage message)
processIncoming in interface NHINDAgentenvelope - A message envelope containing the incoming message.
public OutgoingMessage processOutgoing(java.lang.String messageText)
processOutgoing in interface NHINDAgentmessageText - The raw contents of the incoming message that will be processed.
public OutgoingMessage processOutgoing(java.lang.String messageText,
NHINDAddressCollection recipients,
NHINDAddress sender)
processOutgoing in interface NHINDAgentmessageText - The raw contents of the incoming message that will be processed.recipients - The recipients of the message. This overrides the routing headers in the message.sender - The sender of the message. This overrides the to FROM routing header in the message.
public OutgoingMessage processOutgoing(MessageEnvelope envelope)
processOutgoing in interface NHINDAgentenvelope - A message envelope containing the outgoing message.
public OutgoingMessage processOutgoing(OutgoingMessage message)
processOutgoing in interface NHINDAgentmessage - A message envelope containing the incoming message.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||