protected Configuration getRemoteCacheManagerOverSslConfig(String login, String password) {
   ConfigurationBuilder config = getDefaultConfigBuilder();
   config
       .security()
       .authentication()
       .callbackHandler(new LoginHandler(login, password, TEST_REALM));
   config
       .security()
       .ssl()
       .enable()
       .keyStoreFileName(KEYSTORE_PATH)
       .keyStorePassword(KEYSTORE_PASSWORD.toCharArray())
       .trustStoreFileName(TRUSTSTORE_PATH)
       .trustStorePassword(TRUSTSTORE_PASSWORD.toCharArray());
   return config.build();
 }
 protected Configuration getRemoteCacheManagerConfig(String login, String password) {
   ConfigurationBuilder config = getDefaultConfigBuilder();
   config
       .security()
       .authentication()
       .callbackHandler(new LoginHandler(login, password, TEST_REALM));
   return config.build();
 }
 protected Configuration getRemoteCacheManagerConfig(Subject subj) {
   ConfigurationBuilder config = getDefaultConfigBuilder();
   config
       .security()
       .authentication()
       .clientSubject(subj)
       .callbackHandler(
           new LoginHandler("", "")); // callback handle is required by ISPN config validation
   return config.build();
 }
 protected ConfigurationBuilder getDefaultConfigBuilder() {
   ConfigurationBuilder config = new ConfigurationBuilder();
   config.addServer().host(getHRServerHostname()).port(getHRServerPort());
   config
       .security()
       .authentication()
       .serverName(TEST_SERVER_NAME)
       .saslMechanism(getTestedMech())
       .enable();
   return config;
 }