public class JcaX509CertificateValidator extends Object implements X509CertificateValidator
X509CertificateValidator
implemented using a JCA PKIX path
builder.Modifier and Type | Class and Description |
---|---|
static class |
JcaX509CertificateValidator.Builder
A builder that produces a
JcaX509CertificateValidator . |
X509CertificateValidator.Factory
Modifier and Type | Method and Description |
---|---|
static JcaX509CertificateValidator.Builder |
builder()
Gets a builder that creates a new instance.
|
void |
validate(List<X509Certificate> chain)
Validates the given chain of certificates.
|
public static JcaX509CertificateValidator.Builder builder()
public void validate(List<X509Certificate> chain) throws CertificateValidationException
X509CertificateValidator
validate
in interface X509CertificateValidator
chain
- chain of certificatesCertificateValidationException
- if the certificate at the front
of chain is not valid based on the remaining certificates in the chain
and the given trust storeCopyright © 2019. All rights reserved.