org.nhindirect.stagent.trust
Class TrustModel

java.lang.Object
  extended by org.nhindirect.stagent.trust.TrustModel

public class TrustModel
extends Object

Default implementation of the trust model.

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.

Author:
Greg Meyer, Umesh Madan

Field Summary
static TrustModel Default
           
 
Constructor Summary
TrustModel()
          Constructs a model with a default validator.
TrustModel(TrustChainValidator validator)
          Constructs a model with a provided chain validator.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Default

public static final TrustModel Default
Constructor Detail

TrustModel

public TrustModel()
Constructs a model with a default validator.


TrustModel

@Inject
public TrustModel(TrustChainValidator validator)
Constructs a model with a provided chain validator.

Parameters:
validator - The trust validator used to valid trust of a certificate with trust anchors.
Method Detail

getCertChainValidator

public TrustChainValidator getCertChainValidator()
Gets the chain validator associated with this model.

Returns:
The chain validator associated with this model.

enforce

public void enforce(IncomingMessage message)
Enforces the trust policy an incoming message. Each domain recipient's trust status is set according the models trust policy.


enforce

public void enforce(OutgoingMessage message)
}



Copyright © 2010-2012 HNIN Direct. All Rights Reserved.