aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/sipaccregwizz/NewAccount.java
blob: 1aa9cc5e142d8531b2db3029b386182469acea51 (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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
/*
 * 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.sipaccregwizz;

/**
 * @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 proxy address.
     */
    private String proxyAddress;

    /**
     * The xcapRoot URI.
     */
    private String xcapRoot;

    /**
     * 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 proxyAddress the proxy address to set
     */
    public NewAccount(  String userName,
                        char[] password,
                        String serverAddress,
                        String proxyAddress)
    {
        this.userName = userName;
        this.password = password;
        this.serverAddress = serverAddress;
        this.proxyAddress = proxyAddress;
    }

    /**
     * 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;
    }

    /**
     * Sets the proxy address.
     * @param proxyAddress the proxy address to set
     */
    public void setProxyAddress(String proxyAddress)
    {
        this.proxyAddress = proxyAddress;
    }

    /**
     * Returns the proxy address.
     * @return the proxy address
     */
    public String getProxyAddress()
    {
        return proxyAddress;
    }

    /**
     * Returns the xcapRoot.
     * @return the xcapRoot
     */
    public String getXcapRoot()
    {
        return xcapRoot;
    }

    /**
     * Sets xcapRoot.
     * @param xcapRoot the xcapRoot to set
     */
    public void setXcapRoot(String xcapRoot)
    {
        this.xcapRoot = xcapRoot;
    }
}