blob: fde1553dcf5ebed3679c5852367009dcd550ba17 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.jabberaccregwizz;
/**
* @author Yana Stamcheva
*/
public class NewAccount
{
/**
* The account user name.
*/
private String userName;
/**
* The account password.
*/
private char[] password;
/**
* The server address.
*/
private String serverAddress;
/**
* The port to connect to.
*/
private String serverPort;
/**
* Creates a new account by specifying the account user name and password.
* @param userName the account user name
* @param password the account password
* @param serverAddress the server address to set
* @param port the port to connect to
*/
public NewAccount( String userName,
char[] password,
String serverAddress,
String port)
{
this.userName = userName;
this.password = password;
this.serverAddress = serverAddress;
this.serverPort = port;
}
/**
* Sets the account user name.
* @param userName the user name of the account
*/
public void setUserName(String userName)
{
this.userName = userName;
}
/**
* Returns the account user name.
* @return the account user name
*/
public String getUserName()
{
return userName;
}
/**
* Sets the account password.
* @param password the account password
*/
public void setPassword(char[] password)
{
this.password = password;
}
/**
* Returns the account password.
* @return the account password
*/
public char[] getPassword()
{
return password;
}
/**
* Sets the server address.
* @param serverAddress the server address to set
*/
public void setServerAddress(String serverAddress)
{
this.serverAddress = serverAddress;
}
/**
* Returns the server address.
* @return the server address
*/
public String getServerAddress()
{
return serverAddress;
}
/**
* Returns the port of the server.
* @return the port of the server
*/
public String getServerPort()
{
return serverPort;
}
}
|