예제 #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;
 }
예제 #2
0
 static void cacheCredentials(ServerConnectionManager scm, String[] credentials) {
   m_credentialsMap.put(scm.toString(), credentials);
   m_credentialsMap.put(scm.getHostname(), credentials);
 }