Class SaslNonza.SASLFailure
- java.lang.Object
-
- org.jivesoftware.smack.packet.AbstractError
-
- org.jivesoftware.smack.sasl.packet.SaslNonza.SASLFailure
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,Nonza
,TopLevelStreamElement
,XmlLangElement
,SaslNonza
- Enclosing interface:
- SaslNonza
public static class SaslNonza.SASLFailure extends AbstractError implements SaslNonza
A SASL failure stream element, also called "SASL Error".- See Also:
- RFC 6120 6.5 SASL Errors
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.AbstractError
AbstractError.Builder<B extends AbstractError.Builder<B>>
-
Nested classes/interfaces inherited from interface org.jivesoftware.smack.sasl.packet.SaslNonza
SaslNonza.AuthMechanism, SaslNonza.Challenge, SaslNonza.Response, SaslNonza.SASLFailure, SaslNonza.Success
-
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENT
static QName
QNAME
-
Fields inherited from class org.jivesoftware.smack.packet.AbstractError
descriptiveTexts, extensions, textNamespace
-
-
Constructor Summary
Constructors Constructor Description SASLFailure(String saslError)
SASLFailure(String saslError, Map<String,String> descriptiveTexts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElementName()
Returns the root element name.SASLError
getSASLError()
Get the SASL related error condition.String
getSASLErrorString()
Get the SASL error as String.String
toString()
XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
Methods inherited from class org.jivesoftware.smack.packet.AbstractError
addDescriptiveTextsAndExtensions, getDescriptiveText, getDescriptiveText, getExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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 String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SASLFailure
public SASLFailure(String saslError)
-
SASLFailure
public SASLFailure(String saslError, Map<String,String> descriptiveTexts)
-
-
Method Detail
-
getSASLError
public SASLError getSASLError()
Get the SASL related error condition.- Returns:
- the SASL related error condition.
-
getSASLErrorString
public String getSASLErrorString()
Get the SASL error as String.- Returns:
- the SASL error as String
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
-