Class: Protocol::ZMTP::PeerInfo
- Inherits:
-
Data
- Object
- Data
- Protocol::ZMTP::PeerInfo
- Defined in:
- lib/protocol/zmtp/peer_info.rb
Overview
Post-handshake identity of the peer on a Connection.
-
public_keyis the peer’s CURVE long-termcrypto::PublicKey, ornilwhen the mechanism does not authenticate a key (e.g. NULL). -
identityis the peer’sZMQ_IDENTITYstring, or “” when no identity was advertised in the READY metadata.
Used as a peer key by upper layers (e.g. omq-qos levels 2/3): the whole value object is frozen and equality-comparable, so it can be stored directly in a Hash without picking one anchor over the other.
Also passed to CURVE authenticators during the handshake (at that point identity is “”, since it arrives post-auth).
Instance Attribute Summary collapse
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
Instance Attribute Details
#identity ⇒ Object (readonly)
Returns the value of attribute identity
18 19 20 |
# File 'lib/protocol/zmtp/peer_info.rb', line 18 def identity @identity end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key
18 19 20 |
# File 'lib/protocol/zmtp/peer_info.rb', line 18 def public_key @public_key end |