|
||||||||||
| 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. Implements to support updating agent properties at runtime.
| Constructor Summary | |
|---|---|
DefaultNHINDAgent(Collection<String> domains,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors)
Constructs an agent with a list of domains, certificate stores, and a trust anchor store. |
|
DefaultNHINDAgent(Collection<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(Collection<String> domains,
CertificateResolver privateCerts,
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(String domain,
CertificateResolver privateCerts,
CertificateResolver publicCerts,
TrustAnchorResolver anchors)
Constructs an agent with a domain, certificate stores, and a trust anchor store. |
|
DefaultNHINDAgent(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. |
Collection<String> |
getDomains()
Gets the list of domains that the agent is serving. |
NHINDAgentEventListener |
getEventListener()
Sets the event listener that will receive notifications at different stages of message processing. |
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() |
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(String messageText)
Processes an incoming message represented by a raw string. |
IncomingMessage |
processIncoming(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(String messageText)
Processes an outgoing message represented by a raw string. |
OutgoingMessage |
processOutgoing(String messageText,
NHINDAddressCollection recipients,
NHINDAddress sender)
Processes an outgoing message represented by a raw string. |
void |
setCryptographer(Cryptographer cryptographer)
Sets the Cryptographer used by the agent to perform cryptography operations. |
void |
setDomains(Collection<String> domains)
Sets the list of domain that the agent is serving. |
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 |
setPrivateCertResolver(CertificateResolver resolver)
Sets the certificate store used to decrypt and sign messages. |
void |
setPublicCertResolvers(Collection<CertificateResolver> resolvers)
Sets the certificate stores used to encrypt messages and validate signatures. |
void |
setTrustAnchorResolver(TrustAnchorResolver resolver)
Sets the certificate store that contains the certificate anchors that validate if certificates are trusted. |
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(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(Collection<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(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(Collection<String> domains,
CertificateResolver privateCerts,
Collection<CertificateResolver> publicCerts,
TrustAnchorResolver anchors,
TrustModel trustModel,
Cryptographer cryptographer)
public DefaultNHINDAgent(Collection<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 void setDomains(Collection<String> domains)
setDomains in interface MutableAgentdomains - The list of domain that the agent is serving.public Collection<String> getDomains()
getDomains in interface MutableAgentgetDomains in interface NHINDAgentpublic Cryptographer getCryptographer()
getCryptographer in interface MutableAgentpublic void setCryptographer(Cryptographer cryptographer)
setCryptographer in interface MutableAgentcryptographer - The Cryptographer used by the agent to perform cryptography operations.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()
isWrappingEnabled in interface MutableAgentpublic void setWrappingEnabled(boolean wrappingEnabled)
setWrappingEnabled in interface MutableAgentwrappingEnabled - True if the agent automatically wraps messages. False otherwise.public CertificateResolver getPublicCertResolver()
getPublicCertResolvers()
public Collection<CertificateResolver> getPublicCertResolvers()
getPublicCertResolvers in interface MutableAgentpublic void setPublicCertResolvers(Collection<CertificateResolver> resolvers)
setPublicCertResolvers in interface MutableAgentresolvers - The certificate stores used to encrypt messages and validate signatures.public CertificateResolver getPrivateCertResolver()
getPrivateCertResolver in interface MutableAgentpublic void setPrivateCertResolver(CertificateResolver resolver)
setPrivateCertResolver in interface MutableAgentresolver - The certificate store used to decrypt and sign messages.public TrustAnchorResolver getTrustAnchors()
getTrustAnchors in interface MutableAgentpublic void setTrustAnchorResolver(TrustAnchorResolver resolver)
setTrustAnchorResolver in interface MutableAgentresolver - The certificate store that contains the certificate anchors that validate if certificates are trusted.public TrustEnforcementStatus getMinTrustRequirement()
public void setMinTrustRequirement(TrustEnforcementStatus value)
value - The minimum trust status applied to messages by the agent.public void setEventListener(NHINDAgentEventListener listener)
setEventListener in interface MutableAgentlistener - A concrete implementation of an NHINDAgentEventListener.public NHINDAgentEventListener getEventListener()
getEventListener in interface MutableAgentpublic IncomingMessage processIncoming(String messageText)
processIncoming in interface NHINDAgentmessageText - The raw contents of the incoming message that will be processed.
public IncomingMessage processIncoming(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(String messageText)
processOutgoing in interface NHINDAgentmessageText - The raw contents of the incoming message that will be processed.
public OutgoingMessage processOutgoing(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 | |||||||||