Search in sources :

Example 6 with CredentialStoreException

use of org.apache.airavata.credential.store.exception.CredentialStoreException in project airavata by apache.

the class IamAdminServicesHandler 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);
    }
}
Also used : TException(org.apache.thrift.TException) CredentialStoreException(org.apache.airavata.credential.store.exception.CredentialStoreException)

Aggregations

CredentialStoreException (org.apache.airavata.credential.store.exception.CredentialStoreException)6 TException (org.apache.thrift.TException)5 TBinaryProtocol (org.apache.thrift.protocol.TBinaryProtocol)1 TProtocol (org.apache.thrift.protocol.TProtocol)1 TSocket (org.apache.thrift.transport.TSocket)1 TTransport (org.apache.thrift.transport.TTransport)1 TTransportException (org.apache.thrift.transport.TTransportException)1