Class SaslNonza.SASLFailure

java.lang.Object
org.jivesoftware.smack.packet.AbstractError
org.jivesoftware.smack.sasl.packet.SaslNonza.SASLFailure
All Implemented Interfaces:
Element, NamedElement, Nonza, TopLevelStreamElement, XmlElement, 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:
  • Field Details

  • Constructor Details

    • SASLFailure

      public SASLFailure(String saslError)
    • SASLFailure

      public SASLFailure(String saslError, Map<String,String> descriptiveTexts)
  • Method Details

    • 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)
      Specified by:
      toXML in interface Element
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getElementName

      public String getElementName()
      Description copied from interface: NamedElement
      Returns the root element name.
      Specified by:
      getElementName in interface NamedElement
      Returns:
      the element name.