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

FingerprintRepository

interface FingerprintRepository (source)

Repository of remote peer fingerprints.

Functions

addFingerprint

Adds the fingerprint of a remote peer to the repository.

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

contains

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

abstract fun contains(identifier: String!): Boolean

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

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