Class HostRef

java.lang.Object
lol.trq.alts.vault.HostRef

public final class HostRef extends Object
One host of a repository as the latest verified manifest state lists it (AVP SPEC 4.2): its key, the host's identity, and its locator, where it is reached. Connect to it by key with VaultHosts.connect(HostRef).
Since:
1.0.0
  • Method Details

    • hostKey

      public String hostKey()
      The host key, base64.
      Returns:
      the key
      Since:
      1.0.0
    • locator

      public String locator()
      Where the host is reached, host or host:port.
      Returns:
      the locator
      Since:
      1.0.0
    • equals

      public boolean equals(Object o)
      Whether o names the same key at the same locator.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object
      Returns:
      whether they are equal
      Since:
      1.0.0
    • hashCode

      public int hashCode()
      Hashes what equals(Object) compares.
      Overrides:
      hashCode in class Object
      Returns:
      the hash
      Since:
      1.0.0
    • toString

      public String toString()
      The locator and the key.
      Overrides:
      toString in class Object
      Returns:
      a description
      Since:
      1.0.0