@Override public void execute() throws Exception { AliasService as = getAliasService(); KeystoreService keystoreService = getKeystoreService(); if (cluster == null) { cluster = "__gateway"; } boolean credentialStoreForClusterAvailable = keystoreService.isCredentialStoreForClusterAvailable(cluster); if (credentialStoreForClusterAvailable) { out.println("Listing aliases for: " + cluster); List<String> aliases = as.getAliasesForCluster(cluster); for (String alias : aliases) { out.println(alias); } out.println("\n" + aliases.size() + " items."); } else { out.println("Invalid cluster name provided: " + cluster); } }
@Override public void execute() throws Exception { AliasService as = getAliasService(); KeystoreService keystoreService = getKeystoreService(); if (cluster == null) { cluster = "__gateway"; } boolean credentialStoreForClusterAvailable = keystoreService.isCredentialStoreForClusterAvailable(cluster); if (credentialStoreForClusterAvailable) { out.println("Listing aliases for: " + cluster); List<String> aliases = as.getAliasesForCluster(cluster); for (String alias : aliases) { out.println(alias); } out.println("\n" + aliases.size() + " items."); } else { out.println("Invalid cluster name provided: " + cluster); } }
@Override public void execute() throws Exception { AliasService as = getAliasService(); KeystoreService keystoreService = getKeystoreService(); if (as != null) { if (cluster == null) { cluster = "__gateway"; } boolean credentialStoreForClusterAvailable = keystoreService.isCredentialStoreForClusterAvailable(cluster); if (credentialStoreForClusterAvailable) { List<String> aliasesForCluster = as.getAliasesForCluster(cluster); if (null == aliasesForCluster || !aliasesForCluster.contains(name)) { out.println("Deletion of Alias: " + name + " from cluster: " + cluster + " Failed. " + "\n" + "No such alias exists in the cluster."); } else { as.removeAliasForCluster(cluster, name); out.println(name + " has been successfully deleted."); } } else { out.println("Invalid cluster name provided: " + cluster); } } }
@Override public void execute() throws Exception { AliasService as = getAliasService(); KeystoreService keystoreService = getKeystoreService(); if (as != null) { if (cluster == null) { cluster = "__gateway"; } boolean credentialStoreForClusterAvailable = keystoreService.isCredentialStoreForClusterAvailable(cluster); if (credentialStoreForClusterAvailable) { List<String> aliasesForCluster = as.getAliasesForCluster(cluster); if (null == aliasesForCluster || !aliasesForCluster.contains(name)) { out.println("Deletion of Alias: " + name + " from cluster: " + cluster + " Failed. " + "\n" + "No such alias exists in the cluster."); } else { as.removeAliasForCluster(cluster, name); out.println(name + " has been successfully deleted."); } } else { out.println("Invalid cluster name provided: " + cluster); } } }
KeystoreService ks = services.getService(GatewayServices.KEYSTORE_SERVICE); if (ks != null) { if (!ks.isCredentialStoreForClusterAvailable(topologyName)) { ks.createCredentialStoreForCluster(topologyName);
KeystoreService ks = services.getService(GatewayServices.KEYSTORE_SERVICE); if (ks != null) { if (!ks.isCredentialStoreForClusterAvailable(topologyName)) { ks.createCredentialStoreForCluster(topologyName);
if (!ks.isCredentialStoreForClusterAvailable(GATEWAY_CREDENTIAL_STORE_NAME)) {
if (!ks.isCredentialStoreForClusterAvailable(GATEWAY_CREDENTIAL_STORE_NAME)) {
if (!ks.isCredentialStoreForClusterAvailable(GATEWAY_CREDENTIAL_STORE_NAME)) { log.creatingCredentialStoreForGateway(); ks.createCredentialStoreForCluster(GATEWAY_CREDENTIAL_STORE_NAME);
if (!ks.isCredentialStoreForClusterAvailable(GATEWAY_CREDENTIAL_STORE_NAME)) { log.creatingCredentialStoreForGateway(); ks.createCredentialStoreForCluster(GATEWAY_CREDENTIAL_STORE_NAME);