net / org.apache.tuweni.net.tls / VertxTrustOptions / whitelistServers

whitelistServers

static fun whitelistServers(knownServersFile: Path): TrustOptions (source)

Require servers to present known certificates, or CA-signed certificates.

If a certificate is not CA-signed, then its fingerprint must be present in the known servers file, associated with the server (identified by host+port).

Parameters

knownServersFile - The path to the file containing fingerprints by host.

Return
A Vert.x TrustOptions.

static fun whitelistServers(repository: FingerprintRepository): TrustOptions (source)

Require servers to present known certificates, or CA-signed certificates.

If a certificate is not CA-signed, then its fingerprint must be present in the known servers file, associated with the server (identified by host+port).

Parameters

repository - The repository containing fingerprints by host.

Return
A Vert.x TrustOptions.

static fun whitelistServers(knownServersFile: Path, acceptCASigned: Boolean): TrustOptions (source)

Require servers to present known certificates.

The fingerprint for a server certificate must be present in the known servers file, associated with the server (identified by host+port).

Parameters

knownServersFile - The path to the file containing fingerprints by host.

acceptCASigned - If true, CA-signed certificates will always be accepted.

Return
A Vert.x TrustOptions.

static fun whitelistServers(repository: FingerprintRepository, acceptCASigned: Boolean): TrustOptions (source)

Require servers to present known certificates.

The fingerprint for a server certificate must be present in the known servers file, associated with the server (identified by host+port).

Parameters

repository - The repository containing fingerprints by host.

acceptCASigned - If true, CA-signed certificates will always be accepted.

Return
A Vert.x TrustOptions.

static fun whitelistServers(knownServersFile: Path, tmf: TrustManagerFactory): TrustOptions (source)

Require servers to present known certificates, or CA-signed certificates.

If a certificate is not CA-signed, then its fingerprint must be present in the known servers file, associated with the server (identified by host+port).

Parameters

knownServersFile - The path to the file containing fingerprints by host.

tmf - A TrustManagerFactory for checking server certificates against a CA.

Return
A Vert.x TrustOptions.

static fun whitelistServers(repository: FingerprintRepository, tmf: TrustManagerFactory): TrustOptions (source)

Require servers to present known certificates, or CA-signed certificates.

If a certificate is not CA-signed, then its fingerprint must be present in the known servers file, associated with the server (identified by host+port).

Parameters

repository - The repository containing fingerprints by host.

tmf - A TrustManagerFactory for checking server certificates against a CA.

Return
A Vert.x TrustOptions.