public final class TrustedCertPathFinder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.security.cert.CertPath |
findTrustedCertPath(java.security.KeyStore keyStore,
java.security.cert.CertPath certPath)
Method that validates the provided cert path to find a trusted certificate in the certificate store.
|
public static java.security.cert.CertPath findTrustedCertPath(java.security.KeyStore keyStore, java.security.cert.CertPath certPath) throws java.security.cert.CertPathValidatorException
keyStore
- The key store containing CA trust root certificatescertPath
- The certpath from which to extract a valid cert path to a trusted certificate.java.security.cert.CertPathValidatorException
- If the CertPath is invalid.Copyright © 2013. All Rights Reserved.