Class VaultHost
java.lang.Object
lol.trq.alts.vault.VaultHost
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 Summary
-
Method Details
-
hostKey
The key this host was matched by, base64.- Returns:
- the host key
- Since:
- 1.0.0
-
locator
Where this host is reached,hostorhost:port: the hint that travels beside the key in a manifest's hosts and in tokens.- Returns:
- the locator
- Since:
- 1.0.0
-
ref
This host as a manifest names it.- Returns:
- the host's key and locator
- Since:
- 1.0.0
-
toString
-