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

contains

abstract fun contains(identifier: String!): Boolean (source)

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

Parameters

identifier - String!: the identifier of a remote peer

Return
Boolean: true if the remote peer identifier is present in the repository

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

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

Parameters

identifier - String!: the identifier of a remote peer

fingerprint - Bytes!: the fingerprint of a remote peer

Return
Boolean: true if there is a peer in the repository associated with that fingerprint