public class TrustModel extends Object
For outgoing messages each recipient is checked that it has a valid public certificate and that the certificate has a trusted anchor in the trust settings.
For incoming messages the sender's signature is validated and each recipient is checked to have a valid certificate. The sender is also validated to be trusted by the recipients.
| Modifier and Type | Field and Description |
|---|---|
static TrustModel |
Default |
| Constructor and Description |
|---|
TrustModel()
Constructs a model with a default validator.
|
TrustModel(TrustChainValidator validator)
Constructs a model with a provided chain validator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enforce(IncomingMessage message)
Enforces the trust policy an incoming message.
|
void |
enforce(OutgoingMessage message)
}
|
TrustChainValidator |
getCertChainValidator()
Gets the chain validator associated with this model.
|
org.nhindirect.policy.PolicyFilter |
getPolicyFilter()
Gets the policy filter for trust validation.
|
PolicyResolver |
getTrustPolicyResolver()
Gets the policy resolver for trust validation
|
void |
setPolicyFilter(org.nhindirect.policy.PolicyFilter policyFilter)
Sets the policy filter for trust validation.
|
void |
setTrustPolicyResolver(PolicyResolver trustPolicyResolver)
Sets the policy resolver for trust validation
|
public static final TrustModel Default
public TrustModel()
@Inject public TrustModel(TrustChainValidator validator)
validator - The trust validator used to valid trust of a certificate with trust anchors.public TrustChainValidator getCertChainValidator()
@Inject(optional=true) public void setPolicyFilter(org.nhindirect.policy.PolicyFilter policyFilter)
policyFilter - The filter used to check certificate for policy compliance.public org.nhindirect.policy.PolicyFilter getPolicyFilter()
@Inject(optional=true) public void setTrustPolicyResolver(PolicyResolver trustPolicyResolver)
trustPolicyResolver - The policy resolver used to finding certificate policies for trust validation.public PolicyResolver getTrustPolicyResolver()
public void enforce(IncomingMessage message)
public void enforce(OutgoingMessage message)
Copyright © 2010-2016 NHIN Direct. All Rights Reserved.