CertPathVerifier

public class CertPathVerifier

This class wraps the certificate path verification routine into a separate static method. This is useful when JDK1.3 is used, the cert path verification is skipped. And the JDK1.4 specific classes will not be loaded, as they are all called in this class.

Author:kcyee

Fields

logger

protected static Logger logger

Logger

Methods

verify

public static boolean verify(java.security.cert.Certificate[] certs, CompositeKeyStore trusted)

Verifies the specified certificate chain against the trusted anchors. The trusted anchors contains all public certificate that is trusted. This method will make use of JDK1.4’s utilities to verify the certificate chain.

Parameters:
  • certs – the certificate chain being verified
  • trusted – the keystore storing the trusted anchors.
Returns:

true if verification is succeeded; false otherwise