Class Failure

  • All Implemented Interfaces:
    StreamElement

    public final class Failure
    extends Object
    implements StreamElement
    The implementation of the <failure/> element, which indicates a SASL failure.

    6.4.5. SASL Failure

    The receiving entity reports failure of the handshake for this authentication mechanism by sending a <failure/> element qualified by the 'urn:ietf:params:xml:ns:xmpp-sasl' namespace.

    This class is immutable.

    • Method Detail

      • getCondition

        public final Failure.Condition getCondition()
        Gets the defined error condition.
        Returns:
        The error condition.
      • getText

        public final String getText()
        Gets the text of the failure.
        Returns:
        The text.
      • getLanguage

        public final Locale getLanguage()
        Gets the language of the text.
        Returns:
        The language.