Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Class UserCredentials

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.UserCredentials

public class UserCredentials
extends Object

The class is used whenever user credentials for a particular realm (site server or service) are necessary

Version:
1.0
Author:
Emil Ivov

Constructor Summary
UserCredentials()
           
 
Method Summary
 char[] getPassword()
          Returns a password associated with this set of credentials.
 String getPasswordAsString()
          Returns a String containing the password associated with this set of credentials.
 String getUserName()
          Returns the name of the user that these credentials relate to.
 boolean isPasswordPersistent()
          Determines whether or not the password associated with this credentials object is to be stored persistently (insecure!) or not.
 void setPassword(char[] passwd)
          Sets a password associated with this set of credentials.
 void setPasswordPersistent(boolean storePassword)
          Specifies whether or not the password associated with this credentials object is to be stored persistently (insecure!) or not.
 void setUserName(String userName)
          Sets the name of the user that these credentials relate to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCredentials

public UserCredentials()
Method Detail

setUserName

public void setUserName(String userName)
Sets the name of the user that these credentials relate to.

Parameters:
userName - the name of the user that these credentials relate to.

getUserName

public String getUserName()
Returns the name of the user that these credentials relate to.

Returns:
the user name.

setPassword

public void setPassword(char[] passwd)
Sets a password associated with this set of credentials.

Parameters:
passwd - the password associated with this set of credentials.

getPassword

public char[] getPassword()
Returns a password associated with this set of credentials.

Returns:
a password associated with this set of credentials.

getPasswordAsString

public String getPasswordAsString()
Returns a String containing the password associated with this set of credentials.

Returns:
a String containing the password associated with this set of credentials.

setPasswordPersistent

public void setPasswordPersistent(boolean storePassword)
Specifies whether or not the password associated with this credentials object is to be stored persistently (insecure!) or not.

Parameters:
storePassword - indicates whether passwords contained by this credentials object are to be stored persistently.

isPasswordPersistent

public boolean isPasswordPersistent()
Determines whether or not the password associated with this credentials object is to be stored persistently (insecure!) or not.

Returns:
true if the underlying protocol provider is to persistently (and possibly insecurely) store the password and false otherwise.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.