From 362ae355100265c4e0c3d7b5fba6f5b1daca065f Mon Sep 17 00:00:00 2001 From: Emil Ivov Date: Tue, 22 Aug 2006 20:03:08 +0000 Subject: [PATCH] Woking on implementing support for SIP Added a getPasswordAsString() method --- .../service/protocol/UserCredentials.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/net/java/sip/communicator/service/protocol/UserCredentials.java b/src/net/java/sip/communicator/service/protocol/UserCredentials.java index 0ea7555d2..a74b0db1e 100644 --- a/src/net/java/sip/communicator/service/protocol/UserCredentials.java +++ b/src/net/java/sip/communicator/service/protocol/UserCredentials.java @@ -58,6 +58,19 @@ public char[] getPassword() return password; } + /** + * Returns a String containing the password associated with this set of + * credentials. + * + * @return a String containing the password associated with this set of + * credentials. + */ + public String getPasswordAsString() + { + return new String(password); + } + + /** * Specifies whether or not the password associated with this credentials * object is to be sored persistently (insecure!) or not.