public final class Failure extends Object implements StreamElement
<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,
String text,
Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
Failure.Condition |
getCondition()
Gets the defined error condition.
|
Locale |
getLanguage()
Gets the language of the text.
|
String |
getText()
Gets the text of the failure.
|
String |
toString() |
public Failure(Failure.Condition condition)
public Failure(Failure.Condition condition, String text, Locale locale)
public final Failure.Condition getCondition()
public final String getText()
public final Locale getLanguage()
Copyright © 2014–2016 XMPP.rocks. All rights reserved.