tuweni / org.apache.tuweni.net.tls / TrustManagerFactories / whitelistClients

whitelistClients

static fun whitelistClients(knownClientsFile: Path!): TrustManagerFactory! (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 knownClientsFile.

Parameters

knownClientsFile - Path!: The path to the file containing fingerprints.

Return
TrustManagerFactory!: A trust manager factory.

static fun whitelistClients(repository: FingerprintRepository!): TrustManagerFactory! (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 knownClientsFile.

Parameters

repository - FingerprintRepository!: The repository containing fingerprints.

Return
TrustManagerFactory!: A trust manager factory.

static fun whitelistClients(knownClientsFile: Path!, acceptCASigned: Boolean): TrustManagerFactory! (source)

Require clients to present known certificates.

The fingerprint for a client certificate must be present in knownClientsFile.

Parameters

knownClientsFile - Path!: The path to the file containing fingerprints.

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

Return
TrustManagerFactory!: A trust manager factory.

static fun whitelistClients(repository: FingerprintRepository!, acceptCASigned: Boolean): TrustManagerFactory! (source)

Require clients to present known certificates.

The fingerprint for a client certificate must be present in knownClientsFile.

Parameters

repository - FingerprintRepository!: The repository containing fingerprints.

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

Return
TrustManagerFactory!: A trust manager factory.

static fun whitelistClients(knownClientsFile: Path!, tmf: TrustManagerFactory!): TrustManagerFactory! (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 knownClientsFile.

Parameters

knownClientsFile - Path!: The path to the file containing fingerprints.

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

Return
TrustManagerFactory!: A trust manager factory.

static fun whitelistClients(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustManagerFactory! (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 knownClientsFile.

Parameters

repository - FingerprintRepository!: The repository containing fingerprints.

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

Return
TrustManagerFactory!: A trust manager factory.