Package biopb.tensor

Interface TlsPinStore

All Known Implementing Classes:
FileTlsPinStore

public interface TlsPinStore
Where trust-on-first-use remembers the certificate it pinned, keyed by host:port.

FileTlsPinStore is the store Connection uses: the file the Python SDK keeps under the state directory, so a pin made by either SDK holds for both. inMemory() is for a caller that wants pins to last no longer than the process.

  • Method Summary

    Modifier and Type
    Method
    Description
    get(String hostPort)
    The PEM pinned for hostPort, or null if nothing is.
    A store that lives and dies with the process: pins last until the JVM exits.
    void
    put(String hostPort, String pem)
    Record pem as the pin for hostPort.
  • Method Details

    • get

      String get(String hostPort)
      The PEM pinned for hostPort, or null if nothing is.
    • put

      void put(String hostPort, String pem)
      Record pem as the pin for hostPort.
    • inMemory

      static TlsPinStore inMemory()
      A store that lives and dies with the process: pins last until the JVM exits.