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