public class Authentication extends IQ
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE| Constructor and Description |
|---|
Authentication()
Create a new authentication packet.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
String |
getDigest()
Returns the password digest or null if the digest hasn't
been set.
|
String |
getPassword()
Returns the plain text password or null if the password hasn't
been set.
|
String |
getResource()
Returns the resource or null if the resource hasn't been set.
|
String |
getUsername()
Returns the username, or null if the username hasn't been sent.
|
void |
setDigest(String digest)
Sets the digest value directly.
|
void |
setDigest(String connectionID,
String password)
Sets the digest value using a connection ID and password.
|
void |
setPassword(String password)
Sets the plain text password.
|
void |
setResource(String resource)
Sets the resource.
|
void |
setUsername(String username)
Sets the username.
|
createErrorResponse, createResultIQ, getType, setType, toXMLaddExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTopublic Authentication()
setType(IQ.Type.GET);
public String getUsername()
public void setUsername(String username)
username - the username.public String getPassword()
public void setPassword(String password)
password - the password.public String getDigest()
public void setDigest(String connectionID, String password)
connectionID - the connection ID.password - the password.Connection.getConnectionID()public void setDigest(String digest)
digest - the digest, which is the SHA-1 hash of the connection ID
the user's password, encoded as hex.Connection.getConnectionID()public String getResource()
public void setResource(String resource)
resource - the resource.public String getChildElementXML()
IQExtensions of this class must override this method.
getChildElementXML in class IQCopyright © 2003-2007 Jive Software.