Package rocks.xmpp.core.sasl.model
Class Failure
- java.lang.Object
-
- rocks.xmpp.core.sasl.model.Failure
-
- All Implemented Interfaces:
StreamElement
public final class Failure extends 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFailure.ConditionA general class for a SASL failure condition.
-
Constructor Summary
Constructors Constructor Description Failure(Failure.Condition condition)Failure(Failure.Condition condition, String text, Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Failure.ConditiongetCondition()Gets the defined error condition.LocalegetLanguage()Gets the language of the text.StringgetText()Gets the text of the failure.StringtoString()
-
-
-
Constructor Detail
-
Failure
public Failure(Failure.Condition condition)
-
Failure
public Failure(Failure.Condition condition, String text, Locale locale)
-
-
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.
-
-