[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/sip/security/

emcho at dev.java.net emcho at dev.java.net
Wed May 26 11:08:39 CEST 2004


User: emcho   
Date: 04/05/26 02:08:39

Modified:
 /sip-communicator/src/net/java/sip/communicator/sip/security/
  SipSecurityManager.java

Log:
 Ongoing work on simple

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/sip/security/
========================================================================

File [changed]: SipSecurityManager.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/sip/security/SipSecurityManager.java?r1=1.3&r2=1.4
Delta lines:  +7 -1
-------------------
--- SipSecurityManager.java	26 Mar 2004 14:39:58 -0000	1.3
+++ SipSecurityManager.java	26 May 2004 09:08:36 -0000	1.4
@@ -211,7 +211,7 @@
                     ccEntryHasSeenTran = ccEntry.processResponse(branchID);
 
                 //get a new pass
-                if(ccEntry == null // we don't have credentials for the relm
+                if(ccEntry == null // we don't have credentials for the specified realm
                    || ( (!authHeader.isStale() && ccEntryHasSeenTran))) // we have already tried with those and this is (!stale) not just a request to reencode
                 {
 
@@ -224,6 +224,12 @@
                             getSecurityAuthority().obtainCredentials(
                             realm,
                             defaultCredentials);
+
+                        //put the returned user name in the properties file
+                        //so that it appears as a default one next time user is prompted for pass
+                        PropertiesDepot.setProperty("net.java.sip.communicator.sip.USER_NAME",
+                                                    ccEntry.userCredentials.getUserName()) ;
+                        PropertiesDepot.storeProperties();
                 }
                 //encode and send what we have
                 else if(ccEntry != null




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net




More information about the commits mailing list