Package com.seeq.link.agent
Class CertificateHandler
java.lang.Object
com.seeq.link.agent.CertificateHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
load()
Loads and verifies all the certificates (the certificate chain) in the PEM file.static void
Outputs the default trusted CA certificates to the log.
-
Constructor Details
-
CertificateHandler
-
-
Method Details
-
logDefaultTruststore
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
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
-
hasCertBeenLoaded
public boolean hasCertBeenLoaded() -
isCertSignedByOfficialCertAuthority
public boolean isCertSignedByOfficialCertAuthority() -
getCertificateKeyStore
-