tuweni / org.apache.tuweni.net.tls / FingerprintRepository

FingerprintRepository

interface FingerprintRepository (source)

Repository of remote peer fingerprints.

Functions

addFingerprint

abstract fun addFingerprint(identifier: String, fingerprint: Bytes): Unit

Adds the fingerprint of a remote peer to the repository.

contains

abstract fun contains(identifier: String): Boolean

Checks whether the identifier of the remote peer is present in the repository.

abstract fun contains(identifier: String, fingerprint: Bytes): Boolean

Checks whether the identifier of the remote peer is present in the repository, and its fingerprint matches the fingerprint present.