org.jabber.jabberbeans.Extension
Class IQAuthBuilder

java.lang.Object
  |
  +--org.jabber.jabberbeans.Extension.IQAuthBuilder
Direct Known Subclasses:
IQAuthExtensionBuilder

public class IQAuthBuilder
extends java.lang.Object
implements ExtensionBuilder

IQAuthBuilder is the class used for building an IQAuth Extension.

Version:
$Revision: 1.1.1.1 $
Author:
David Waite <dwaite@jabber.com>, $Author: lucky $
See Also:
ExtensionBuilder, IQAuth

Field Summary
private  java.lang.String password
          current password value
private  java.lang.String resource
          current resource value
private  java.lang.String SHA1Digest
          current SHA1 value
private  java.lang.String username
          current username value
 
Constructor Summary
IQAuthBuilder()
          Creates a new IQAuthBuilder instance.
 
Method Summary
 Extension build()
          build generates a new extension object based on the information stored in this class.
 java.lang.String getPassword()
          gets the password
 java.lang.String getResource()
          gets the current resource
 java.lang.String getSHA1Digest()
          get the current value of the SHA1 Digest field
 java.lang.String getUsername()
          returns the current username
 void reset()
          reset restores the variables to their default state, so that this builder may be reused.
 void setPassword(java.lang.String password)
          sets the password
 void setResource(java.lang.String res)
          sets the resource
 void setSHA1Digest(java.lang.String sha1)
          set the current value of the SHA1 digest field
 void setUsername(java.lang.String username)
          sets the current username
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

username

private java.lang.String username
current username value

resource

private java.lang.String resource
current resource value

password

private java.lang.String password
current password value

SHA1Digest

private java.lang.String SHA1Digest
current SHA1 value
Constructor Detail

IQAuthBuilder

public IQAuthBuilder()
Creates a new IQAuthBuilder instance.
Method Detail

reset

public void reset()
reset restores the variables to their default state, so that this builder may be reused.
Specified by:
reset in interface ExtensionBuilder

getUsername

public java.lang.String getUsername()
returns the current username
Returns:
a String value, or null if none

setUsername

public void setUsername(java.lang.String username)
sets the current username
Parameters:
username - a String value, or null to clear

getResource

public java.lang.String getResource()
gets the current resource
Returns:
a String value, or null if blank

setResource

public void setResource(java.lang.String res)
sets the resource
Parameters:
res - a String value, or null to clear.

getPassword

public java.lang.String getPassword()
gets the password
Returns:
a String value, or null if blank.

setPassword

public void setPassword(java.lang.String password)
sets the password
Parameters:
password - a String value, or null to clear

getSHA1Digest

public java.lang.String getSHA1Digest()
get the current value of the SHA1 Digest field
Returns:
a String value, or null if blank.

setSHA1Digest

public void setSHA1Digest(java.lang.String sha1)
set the current value of the SHA1 digest field
Parameters:
sha1 - a String value, or null to clear

build

public Extension build()
                throws java.lang.InstantiationException
build generates a new extension object based on the information stored in this class.
Specified by:
build in interface ExtensionBuilder
Returns:
an Extension value
Throws:
java.lang.InstantiationException - if an insufficient or malformed information was provided