tuweni / 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 - Path!: The path to the file containing fingerprints by host.

Return
TrustOptions!: 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 - FingerprintRepository!: The repository containing fingerprints by host.

Return
TrustOptions!: 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 - Path!: The path to the file containing fingerprints by host.

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

Return
TrustOptions!: 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 - FingerprintRepository!: The repository containing fingerprints by host.

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

Return
TrustOptions!: 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 - Path!: The path to the file containing fingerprints by host.

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

Return
TrustOptions!: 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 - FingerprintRepository!: The repository containing fingerprints by host.

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

Return
TrustOptions!: A Vert.x TrustOptions.