Esempio n. 1
0
 public static String[] getCachedCredentials(ServerConnectionManager scm) {
   String[] result = (String[]) m_credentialsMap.get(scm.toString());
   if (result == null) {
     result = (String[]) m_credentialsMap.get(scm.getHostname());
   }
   return result;
 }
Esempio n. 2
0
 static void cacheCredentials(ServerConnectionManager scm, String[] credentials) {
   m_credentialsMap.put(scm.toString(), credentials);
   m_credentialsMap.put(scm.getHostname(), credentials);
 }