Package biopb.tensor
Class TlsTrust
java.lang.Object
biopb.tensor.TlsTrust
Everything a
FlightClient needs to trust one TLS endpoint -- plain
data, resolved once per endpoint by TlsTrusts.
The Java twin of Python's TlsTrust: a PEM trust anchor, an optional
hostname override, and a key id. It maps onto Arrow's
FlightClient.Builder as trustedCertificates(rootCerts) and
overrideHostname(overrideHostname); with neither, the JDK's default trust
store and the dialed name decide, as they do for any grpc+tls://
location.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()keyId()Which trust decision this is:endpoint | anchor digest | fingerprint.The name to match against the certificate's SANs instead of the dialed one, or null to verify the dialed name as usual.byte[]The PEM trust anchor, or null to use the system trust store.
-
Field Details
-
NONE
A plaintext location, or the system trust store: no anchor, no override, no key.
-
-
Method Details
-
rootCerts
public byte[] rootCerts()The PEM trust anchor, or null to use the system trust store. -
overrideHostname
The name to match against the certificate's SANs instead of the dialed one, or null to verify the dialed name as usual. Set only when the anchor is the certificate the server presents; seeTlsTrusts. -
keyId
Which trust decision this is:endpoint | anchor digest | fingerprint. The connection cache keys on it, so two upstreams that name the samehost:portunder different anchors are never handed each other's connection (biopb/biopb#604 item 4). Null forNONE. -
equals
-
hashCode
public int hashCode()
-