Class VaultHost

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

public final class VaultHost extends Object
A connection to one AVP host, matched by its host key (AVP SPEC 3.3, 11.7), on the runtime's transport. A member device syncs through one such host, its home host. Built only by VaultHosts, which a runtime hands out as alts.vault().

Every request goes through the runtime's transport, so its proxy, timeouts and header rules apply, under the VAULT purpose. Bearer tokens are minted by the challenge of SPEC 3.3, signed over the transcript for this host's key, and cached by the runtime under that key and this host's address, so a token is never sent to another host. The connection holds no secret of its own.

Since:
1.0.0
  • Method Details

    • hostKey

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

      public String locator()
      Where this host is reached, host or host:port: the hint that travels beside the key in a manifest's hosts and in tokens.
      Returns:
      the locator
      Since:
      1.0.0
    • ref

      public HostRef ref()
      This host as a manifest names it.
      Returns:
      the host's key and locator
      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