public class TrustChainValidator extends Object
| Constructor and Description |
|---|
TrustChainValidator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2010-2016 NHIN Direct. All Rights Reserved.