|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.trust.TrustModel
public class TrustModel
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.
| 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 |
|---|
public static final TrustModel Default
| Constructor Detail |
|---|
public TrustModel()
@Inject public TrustModel(TrustChainValidator validator)
validator - The trust validator used to valid trust of a certificate with trust anchors.| Method Detail |
|---|
public TrustChainValidator getCertChainValidator()
public void enforce(IncomingMessage message)
public void enforce(OutgoingMessage message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||