class

XMPP::Stanza::ExplicitMessageEncryption

Inherits XMPP::Stanza::MsgExtension / XMPP::Stanza::Extension / XMPP::Stanza::Packet / Reference / Object

XEP-0380 Explicit Message Encryption. https://xmpp.org/extensions/xep-0380.html

A small marker that tells receiving clients what kind of encrypted payload is inside the stanza, without having to peek at the actual encryption extension. Without it, Conversations and other clients can fail to surface an encrypted message at all (no notification, no chat bubble) when they cannot decrypt the payload, they don't even know there is anything to display.

well-known namespaces (from the XEP registry): urn:xmpp:omemo:2 OMEMO 2 eu.siacs.conversations.axolotl OMEMO legacy urn:xmpp:openpgp:0 OpenPGP for XMPP (OX) jabber:x:encrypted legacy OpenPGP (XEP-0027)

Constants

OMEMO_LEGACY_NS = "eu.siacs.conversations.axolotl"
OMEMO_V2_NS = "urn:xmpp:omemo:2"

Constructors

new(node : XML::Node)
Source

Class methods

xml_name
Source

Instance methods

name
Source
name_attr
Source
name_attr=(name_attr : String)
Source
namespace
Source
namespace=(namespace : String)
Source
to_xml(xml : XML::Builder)
Source