use of org.apache.airavata.credential.store.exception.CredentialStoreException in project airavata by apache.
the class CredentialStoreClientFactory method createAiravataCSClient.
public static CredentialStoreService.Client createAiravataCSClient(String serverHost, int serverPort) throws CredentialStoreException {
try {
TTransport transport = new TSocket(serverHost, serverPort);
transport.open();
TProtocol protocol = new TBinaryProtocol(transport);
return new CredentialStoreService.Client(protocol);
} catch (TTransportException e) {
throw new CredentialStoreException("Unable to connect to the credential store server at " + serverHost + ":" + serverPort);
}
}
use of org.apache.airavata.credential.store.exception.CredentialStoreException in project airavata by apache.
the class TenantProfileServiceHandler method getCredentialStoreServiceClient.
private CredentialStoreService.Client getCredentialStoreServiceClient() throws TException, ApplicationSettingsException {
final int serverPort = Integer.parseInt(ServerSettings.getCredentialStoreServerPort());
final String serverHost = ServerSettings.getCredentialStoreServerHost();
try {
return CredentialStoreClientFactory.createAiravataCSClient(serverHost, serverPort);
} catch (CredentialStoreException e) {
throw new TException("Unable to create credential store client...", e);
}
}
use of org.apache.airavata.credential.store.exception.CredentialStoreException in project airavata by apache.
the class DefaultAiravataSecurityManager method getCredentialStoreServiceClient.
private CredentialStoreService.Client getCredentialStoreServiceClient() throws TException, ApplicationSettingsException {
final int serverPort = Integer.parseInt(ServerSettings.getCredentialStoreServerPort());
final String serverHost = ServerSettings.getCredentialStoreServerHost();
try {
return CredentialStoreClientFactory.createAiravataCSClient(serverHost, serverPort);
} catch (CredentialStoreException e) {
throw new TException("Unable to create credential store client...", e);
}
}
use of org.apache.airavata.credential.store.exception.CredentialStoreException in project airavata by apache.
the class KeyCloakSecurityManager method getCredentialStoreServiceClient.
private CredentialStoreService.Client getCredentialStoreServiceClient() throws TException, ApplicationSettingsException {
final int serverPort = Integer.parseInt(ServerSettings.getCredentialStoreServerPort());
final String serverHost = ServerSettings.getCredentialStoreServerHost();
try {
return CredentialStoreClientFactory.createAiravataCSClient(serverHost, serverPort);
} catch (CredentialStoreException e) {
throw new TException("Unable to create credential store client...", e);
}
}
use of org.apache.airavata.credential.store.exception.CredentialStoreException in project airavata by apache.
the class AiravataServerHandler method getCredentialStoreServiceClient.
private CredentialStoreService.Client getCredentialStoreServiceClient() throws TException, ApplicationSettingsException {
final int serverPort = Integer.parseInt(ServerSettings.getCredentialStoreServerPort());
final String serverHost = ServerSettings.getCredentialStoreServerHost();
try {
return CredentialStoreClientFactory.createAiravataCSClient(serverHost, serverPort);
} catch (CredentialStoreException e) {
throw new TException("Unable to create credential store client...", e);
}
}
Aggregations