aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/StunServerDescriptor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/StunServerDescriptor.java')
-rw-r--r--src/net/java/sip/communicator/service/protocol/StunServerDescriptor.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/StunServerDescriptor.java b/src/net/java/sip/communicator/service/protocol/StunServerDescriptor.java
index 96ec91f..f637c16 100644
--- a/src/net/java/sip/communicator/service/protocol/StunServerDescriptor.java
+++ b/src/net/java/sip/communicator/service/protocol/StunServerDescriptor.java
@@ -67,14 +67,14 @@ public class StunServerDescriptor
public StunServerDescriptor( String address,
int port,
boolean supportTurn,
- byte[] username,
- byte[] password)
+ String username,
+ String password)
{
this.address = address;
this.port = port;
this.isTurnSupported = supportTurn;
- this.username = username;
- this.password = password;
+ this.username = getUTF8Bytes( username );
+ this.password = getUTF8Bytes( password );
}
/**
@@ -260,8 +260,8 @@ public class StunServerDescriptor
new StunServerDescriptor( stunAddress,
stunPort,
stunIsTurnSupported,
- getUTF8Bytes(stunUsername),
- getUTF8Bytes(stunPassword));
+ stunUsername,
+ stunPassword);
return stunServer;
}
@@ -274,7 +274,7 @@ public class StunServerDescriptor
*
* @return <tt>string</tt>'s bytes.
*/
- private static byte[] getUTF8Bytes(String string)
+ public static byte[] getUTF8Bytes(String string)
{
try
{
@@ -297,7 +297,7 @@ public class StunServerDescriptor
*
* @return the UTF-8 <tt>String</tt>.
*/
- private static String getUTF8String(byte[] bytes)
+ public static String getUTF8String(byte[] bytes)
{
try
{