public class Authentication
extends org.xmpp.packet.IQ
| Constructor and Description |
|---|
Authentication()
Create a new authentication packet.
|
Authentication(org.dom4j.Element el) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addExtension, createCopy, createResultIQ, deleteExtension, getChildElement, getExtension, getType, isRequest, isResponse, setChildElement, setChildElement, setTypepublic Authentication()
setType(IQ.Type.GET);
public Authentication(org.dom4j.Element el)
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.Copyright © 2014. All Rights Reserved.