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

recordClientFingerprints

static fun recordClientFingerprints(knownClientsFile: Path!): TrustOptions! (source)

Accept all client certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a client presents a CA-signed certificate, the certificate common name and fingerprint will be written to knownClientsFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

knownClientsFile - Path!: The path to a file in which to record fingerprints by common name.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordClientFingerprints(repository: FingerprintRepository!): TrustOptions! (source)

Accept all client certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a client presents a CA-signed certificate, the certificate common name and fingerprint will be written to knownClientsFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

repository - FingerprintRepository!: The repository in which to record fingerprints by common name.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordClientFingerprints(knownClientsFile: Path!, skipCASigned: Boolean): TrustOptions! (source)

Accept all client certificates, recording certificate fingerprints.

For all connections, the common name and fingerprint of the presented certificate will be written to knownClientsFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

knownClientsFile - Path!: The path to a file in which to record fingerprints by common name.

skipCASigned - Boolean: If true, CA-signed certificates are not recorded.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordClientFingerprints(repository: FingerprintRepository!, skipCASigned: Boolean): TrustOptions! (source)

Accept all client certificates, recording certificate fingerprints.

For all connections, the common name and fingerprint of the presented certificate will be written to knownClientsFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

repository - FingerprintRepository!: The repository in which to record fingerprints by common name.

skipCASigned - Boolean: If true, CA-signed certificates are not recorded.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordClientFingerprints(knownClientsFile: Path!, tmf: TrustManagerFactory!): TrustOptions! (source)

Accept all client certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a client presents a CA-signed certificate, the certificate common name and fingerprint will be written to knownClientsFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

knownClientsFile - Path!: The path to a file in which to record fingerprints by common name.

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

Return
TrustOptions!: A Vert.x TrustOptions.

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

Accept all client certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a client presents a CA-signed certificate, the certificate common name and fingerprint will be written to knownClientsFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

repository - FingerprintRepository!: The repository in which to record fingerprints by common name.

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

Return
TrustOptions!: A Vert.x TrustOptions.