|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.stagent.trust.TrustChainValidator
public class TrustChainValidator
Validates the trust chain of a certificate with a set of anchors. If a certificate resolver is present, the validator will search for intermediate certificates.
| Constructor Summary | |
|---|---|
TrustChainValidator()
|
|
| Method Summary | |
|---|---|
Collection<CertificateResolver> |
getCertificateResolver()
Gets the intermediate certificate resolvers. |
boolean |
isCertificateResolver()
Indicates if the TrustChainValidator has a certificate resolvers for resolving intermediates certificates. |
boolean |
isTrusted(X509Certificate certificate,
Collection<X509Certificate> anchors)
Indicates if a certificate is considered to be trusted by resolving a valid certificate trust chain with the provided anchors. |
void |
setCertificateResolver(Collection<CertificateResolver> resolver)
Sets the intermediate certificate resolvers. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrustChainValidator()
| Method Detail |
|---|
public boolean isCertificateResolver()
public Collection<CertificateResolver> getCertificateResolver()
public void setCertificateResolver(Collection<CertificateResolver> resolver)
resolver - the intermediate certificate resolver.
public boolean isTrusted(X509Certificate certificate,
Collection<X509Certificate> anchors)
certificate - The certificate to check.anchors - A list of trust anchors used to check the trust chain.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||