I have 3d party library(sdk for Kalkan provider). Part of this library checks certificate paths I believe. Problem is I should pass two parameters to instantiate class correctly that I could use one of its method I need.
Here's code:
final PKIXCertPathReviewer checker = new PKIXCertPathReviewer(cp, params);
boolean test = checker.isValidCertPath();
Here's part of constructor:
public PKIXCertPathReviewer(CertPath certPath, PKIXParameters params)
About task a bit. I have signed document by client certificate. I want to validate path in client's certificate. So I have client's X509Certificate instance of certificate, one middle certificate and one root certificate. Last two are files in cer format on disk. As I understand I should combine all those three certificates together. If someone showed me how to create those cp and params it would be really helpfull. Thanks in advance.