blob: faa793ddc94b6bc8d36e471af97a302e58df0bdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.service.protocol;
/**
* The class is used whenever user credentials for a particular realm (site
* server or service) are necessary
* @author Emil Ivov <emcho@dev.java.net>
* @version 1.0
*/
public class UserCredentials
{
private String userName = null;
private char[] password = null;
/**
* Sets the name of the user that these credentials relate to.
* @param userName the name of the user that these credentials relate to.
*/
public void setUserName(String userName)
{
this.userName = userName;
}
/**
* Returns the name of the user that these credentials relate to.
* @return the user name.
*/
public String getUserName()
{
return this.userName;
}
/**
* Sets a password associated with this set of credentials.
*
* @param passwd the password associated with this set of credentials.
*/
public void setPassword(char[] passwd)
{
this.password = passwd;
}
/**
* Returns these credentials' password
*
* @return these credentials' password
*/
public char[] getPassword()
{
return password;
}
}
|