StaticPeerTransportAuth

org.sigilaris.node.gossip.StaticPeerTransportAuth
See theStaticPeerTransportAuth companion object
final case class StaticPeerTransportAuth(localPeer: PeerIdentity, peerSecrets: Map[PeerIdentity, TransportSharedSecret])

Transport authentication state holding per-peer shared secrets.

Value parameters

localPeer

the identity of the local peer

peerSecrets

the shared secrets for each known peer

Attributes

Companion
object
Source
StaticPeerTransportAuth.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def localSecret: Either[String, TransportSharedSecret]

Returns the local peer's own shared secret.

Returns the local peer's own shared secret.

Attributes

Returns

the local secret, or an error if not configured

Source
StaticPeerTransportAuth.scala
def secretFor(peer: PeerIdentity): Either[String, TransportSharedSecret]

Returns the shared secret for the given peer.

Returns the shared secret for the given peer.

Value parameters

peer

the peer identity

Attributes

Returns

the secret, or an error if not configured

Source
StaticPeerTransportAuth.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product