Class CertificateHandler

java.lang.Object
com.seeq.link.agent.CertificateHandler

public class CertificateHandler extends Object
  • Constructor Details

    • CertificateHandler

      public CertificateHandler(Path certPath)
  • Method Details

    • logDefaultTruststore

      public static void logDefaultTruststore() throws Exception
      Outputs the default trusted CA certificates to the log. This is only meant for debugging CA certificate issues.
      Throws:
      Exception - If an error occurred reading the default TrustStore
    • load

      public void load() throws Exception
      Loads and verifies all the certificates (the certificate chain) in the PEM file.
      Throws:
      Exception - If an error occurred loading the PEM file or verifying the certificate chain.
    • getCertPath

      public Path getCertPath()
    • hasCertBeenLoaded

      public boolean hasCertBeenLoaded()
    • isCertSignedByOfficialCertAuthority

      public boolean isCertSignedByOfficialCertAuthority()
    • getCertificateKeyStore

      public KeyStore getCertificateKeyStore()