public final class Failure extends java.lang.Object implements StreamElement
The implementation of the <failure/>
element, which indicates a 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.
Modifier and Type | Class and Description |
---|---|
static class |
Failure.Condition
A general class for a SASL failure condition.
|
Constructor and Description |
---|
Failure(Failure.Condition condition) |
Failure(Failure.Condition condition,
java.lang.String text,
java.util.Locale locale) |
Modifier and Type | Method and Description |
---|---|
Failure.Condition |
getCondition()
Gets the defined error condition.
|
java.util.Locale |
getLanguage()
Gets the language of the text.
|
java.lang.String |
getText()
Gets the text of the failure.
|
java.lang.String |
toString() |
public Failure(Failure.Condition condition)
public Failure(Failure.Condition condition, java.lang.String text, java.util.Locale locale)
public final Failure.Condition getCondition()
Gets the defined error condition.
public final java.lang.String getText()
Gets the text of the failure.
public final java.util.Locale getLanguage()
Gets the language of the text.
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2019 XMPP.rocks. All rights reserved.