class XMPP::Stanza::ExplicitMessageEncryption

Overview

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)

Defined in:

xmpp/stanza/message/eme.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module XMPP::Stanza::Packet

name : String name, to_xml(xml : XML::Builder)
to_xml : String
to_xml

Constructor Detail

def self.new(node : XML::Node) #

[View source]

Class Method Detail

def self.xml_name : XMLName #

[View source]

Instance Method Detail

def name : String #

[View source]
def name_attr : String #

[View source]
def name_attr=(name_attr : String) #

[View source]
def namespace : String #

[View source]
def namespace=(namespace : String) #

[View source]
def to_xml(xml : XML::Builder) #

[View source]