コード例 #1
0
 /** Ask for security credentials. */
 private CredentialsConfigurator supplyCredentials(
     Application application, ProxyClient proxyClient) {
   String displayName =
       application.getStorage().getCustomProperty(DataSourceDescriptor.PROPERTY_NAME);
   if (displayName == null) displayName = proxyClient.getUrl().toString();
   CredentialsConfigurator jsc = CredentialsConfigurator.supplyCredentials(displayName);
   if (jsc != null) proxyClient.setCredentials(jsc.getUsername(), jsc.getPassword());
   return jsc;
 }