Class TrustCert

java.lang.Object
io.deephaven.dhservice.client.config.TrustCert

@Immutable public abstract class TrustCert extends Object
The trust certificate.
  • Constructor Details

    • TrustCert

      public TrustCert()
  • Method Details

    • read

      @VisibleForTesting public static TrustCert read(Path path) throws IOException
      Throws:
      IOException
    • specificCert

      @Parameter public abstract Optional<PublicCert> 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 this represents the default system certificate(s)
    • getSpecificCert

      public final PublicCert getSpecificCert()
      Equivalent to specificCert().get(). Should only be used if useSystemTrustCert() is false.
      Returns:
      the specific cert