public static class SaslStreamElements.SASLFailure extends PlainStreamElement
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
| Constructor and Description |
|---|
SaslStreamElements.SASLFailure(java.lang.String saslError) |
SaslStreamElements.SASLFailure(java.lang.String saslError,
java.util.Map<java.lang.String,java.lang.String> descriptiveTexts) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescriptiveText()
Get the descriptive text of this SASLFailure.
|
java.lang.String |
getDescriptiveText(java.lang.String xmllang)
Get the descriptive test of this SASLFailure.
|
SASLError |
getSASLError()
Get the SASL related error condition.
|
java.lang.String |
getSASLErrorString() |
XmlStringBuilder |
toXML()
Returns the XML representation of this Element.
|
toStringpublic static final java.lang.String ELEMENT
public SaslStreamElements.SASLFailure(java.lang.String saslError)
public SaslStreamElements.SASLFailure(java.lang.String saslError,
java.util.Map<java.lang.String,java.lang.String> descriptiveTexts)
public SASLError getSASLError()
public java.lang.String getSASLErrorString()
public java.lang.String getDescriptiveText()
Returns the descriptive text of this SASLFailure in the system default language if possible. May return null.
public java.lang.String getDescriptiveText(java.lang.String xmllang)
Returns the descriptive text of this SASLFailure in the given language. May return null if not available.
xmllang - the language.public XmlStringBuilder toXML()
Element