summaryrefslogtreecommitdiff
path: root/sleekxmpp/features/feature_starttls/stanza.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-07-01 14:45:55 -0700
committerLance Stout <lancestout@gmail.com>2011-07-01 14:45:55 -0700
commit634f5d691bab9855deddc4c201389bb60470d76e (patch)
tree29303420af94646ddac01824ebb4a201606b18e1 /sleekxmpp/features/feature_starttls/stanza.py
parent754ac5092a3a37819a71f6565a1e54b3f2547940 (diff)
downloadslixmpp-634f5d691bab9855deddc4c201389bb60470d76e.tar.gz
slixmpp-634f5d691bab9855deddc4c201389bb60470d76e.tar.bz2
slixmpp-634f5d691bab9855deddc4c201389bb60470d76e.tar.xz
slixmpp-634f5d691bab9855deddc4c201389bb60470d76e.zip
Continued reorganization and streamlining.
Diffstat (limited to 'sleekxmpp/features/feature_starttls/stanza.py')
-rw-r--r--sleekxmpp/features/feature_starttls/stanza.py47
1 files changed, 47 insertions, 0 deletions
diff --git a/sleekxmpp/features/feature_starttls/stanza.py b/sleekxmpp/features/feature_starttls/stanza.py
new file mode 100644
index 00000000..5fdafabd
--- /dev/null
+++ b/sleekxmpp/features/feature_starttls/stanza.py
@@ -0,0 +1,47 @@
+"""
+ SleekXMPP: The Sleek XMPP Library
+ Copyright (C) 2010 Nathanael C. Fritz
+ This file is part of SleekXMPP.
+
+ See the file LICENSE for copying permission.
+"""
+
+from sleekxmpp.stanza import StreamFeatures
+from sleekxmpp.xmlstream import StanzaBase, ElementBase
+from sleekxmpp.xmlstream import register_stanza_plugin
+
+
+class STARTTLS(ElementBase):
+
+ """
+ """
+
+ name = 'starttls'
+ namespace = 'urn:ietf:params:xml:ns:xmpp-tls'
+ interfaces = set(('required',))
+ plugin_attrib = name
+
+ def get_required(self):
+ """
+ """
+ return True
+
+
+class Proceed(StanzaBase):
+
+ """
+ """
+
+ name = 'proceed'
+ namespace = 'urn:ietf:params:xml:ns:xmpp-tls'
+ interfaces = set()
+
+
+class Failure(StanzaBase):
+
+ """
+ """
+
+ name = 'failure'
+ namespace = 'urn:ietf:params:xml:ns:xmpp-tls'
+ interfaces = set()