Class SaslNonza.Success
- java.lang.Object
-
- org.jivesoftware.smack.sasl.packet.SaslNonza.Success
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,Nonza
,TopLevelStreamElement
,XmlLangElement
,SaslNonza
- Enclosing interface:
- SaslNonza
public static class SaslNonza.Success extends java.lang.Object implements SaslNonza
A SASL success stream element.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jivesoftware.smack.sasl.packet.SaslNonza
SaslNonza.AuthMechanism, SaslNonza.Challenge, SaslNonza.Response, SaslNonza.SASLFailure, SaslNonza.Success
-
-
Constructor Summary
Constructors Constructor Description Success(java.lang.String data)
Construct a new SASL success stream element with optional additional data for the SASL layer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getData()
Returns additional data for the SASL layer ornull
.java.lang.String
getElementName()
Returns the root element name.XmlStringBuilder
toXML(XmlEnvironment xmlEnvironment)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
Methods inherited from interface org.jivesoftware.smack.sasl.packet.SaslNonza
getNamespace
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
Success
public Success(java.lang.String data)
Construct a new SASL success stream element with optional additional data for the SASL layer. (RFC6120 6.3.10)- Parameters:
data
- additional data for the SASL layer ornull
-
-
Method Detail
-
getData
public java.lang.String getData()
Returns additional data for the SASL layer ornull
.- Returns:
- additional data or
null
-
toXML
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment)
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
-