Class TrustCert
java.lang.Object
io.deephaven.dhservice.client.config.TrustCert
The trust certificate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PublicCertEquivalent tospecificCert().get().static TrustCertabstract Optional<PublicCert>The public certificate to trust.final booleanEquivalent to!specificCert().isPresent().
-
Constructor Details
-
TrustCert
public TrustCert()
-
-
Method Details
-
read
- Throws:
IOException
-
specificCert
The public certificate to trust. If none is provided, the default system trust certificate(s) will be used.- Returns:
- the optional public certificate
-
useSystemTrustCert
public final boolean useSystemTrustCert()Equivalent to!specificCert().isPresent().- Returns:
- true iff
thisrepresents the default system certificate(s)
-
getSpecificCert
Equivalent tospecificCert().get(). Should only be used ifuseSystemTrustCert()isfalse.- Returns:
- the specific cert
-