Examples of CredentialStoreException


Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            StringBuilder stringBuilder = new StringBuilder("Error retrieving credential list for ");
            stringBuilder.append("gateway - ").append(gatewayName);

            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (ClassNotFoundException e) {
            StringBuilder stringBuilder = new StringBuilder("Error retrieving credential list for ");
            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("Error de-serializing objects.");
            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (IOException e) {
            StringBuilder stringBuilder = new StringBuilder("Error retrieving credential list for ");
            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("Error de-serializing objects.");
            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {
            DBUtil.cleanup(preparedStatement, resultSet);
        }

        return credentialList;
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            // Add the new certificate
            credentialsDAO.addCredentials(certificateCredential.getCommunityUser().getGatewayName(), credential,
                    connection);

        } catch (SQLException e) {
            throw new CredentialStoreException("Unable to retrieve database connection.", e);
        } finally {
            DBUtil.cleanup(connection);
        }

    }
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            stringBuilder.append(" gateway - ").append(gatewayId);
            stringBuilder.append(" token id - ").append(credential.getToken());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (UnsupportedEncodingException e) {
            StringBuilder stringBuilder = new StringBuilder(
                    "Error persisting community credentials. Unsupported encoding.");
            stringBuilder.append(" gateway - ").append(gatewayId);
            stringBuilder.append(" token id - ").append(credential.getToken());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (IOException e) {
            StringBuilder stringBuilder = new StringBuilder(
                    "Error persisting community credentials. Error serializing " + "credentials.");
            stringBuilder.append(" gateway - ").append(gatewayId);
            stringBuilder.append(" community user name - ").append(credential.getToken());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {

            DBUtil.cleanup(preparedStatement);
        }
    }
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("token id - ").append(tokenId);

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {
            DBUtil.cleanup(preparedStatement);
        }
    }
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            stringBuilder.append(" gateway - ").append(gatewayId);
            stringBuilder.append(" token id - ").append(credential.getToken());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (UnsupportedEncodingException e) {
            StringBuilder stringBuilder = new StringBuilder("Error updating credentials. Invalid encoding for keys.");
            stringBuilder.append(" gateway - ").append(gatewayId);
            stringBuilder.append(" token id - ").append(credential.getToken());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (IOException e) {
            StringBuilder stringBuilder = new StringBuilder("Error updating credentials. Error serializing objects.");
            stringBuilder.append(" gateway - ").append(gatewayId);
            stringBuilder.append(" token - ").append(credential.getToken());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {

            DBUtil.cleanup(preparedStatement);
        }
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("token id - ").append(tokenId);

            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (ClassNotFoundException e) {
            StringBuilder stringBuilder = new StringBuilder("Error retrieving credentials for community user. Error "
                    + "de-serializing credential objects.");
            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("token id - ").append(tokenId);

            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (IOException e) {
            StringBuilder stringBuilder = new StringBuilder("Error retrieving credentials for community user. Error "
                    + "de-serializing credential objects. An IO Error.");
            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("tokenId - ").append(tokenId);

            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {
            DBUtil.cleanup(preparedStatement);
        }

        return null;
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            StringBuilder stringBuilder = new StringBuilder("Error retrieving credential list for ");
            stringBuilder.append("gateway - ").append(gatewayName);

            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (ClassNotFoundException e) {
            StringBuilder stringBuilder = new StringBuilder("Error retrieving credential list for ");
            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("Error de-serializing objects.");
            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } catch (IOException e) {
            StringBuilder stringBuilder = new StringBuilder("Error retrieving credential list for ");
            stringBuilder.append("gateway - ").append(gatewayName);
            stringBuilder.append("Error de-serializing objects.");
            log.debug(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {
            DBUtil.cleanup(preparedStatement);
        }

        return credentialList;
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            stringBuilder.append("community user email - ").append(user.getUserEmail());
            stringBuilder.append("token id - ").append(token);

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {

            DBUtil.cleanup(preparedStatement);
        }
    }
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            stringBuilder.append("gateway - ").append(user.getGatewayName());
            stringBuilder.append("community user name - ").append(user.getUserName());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {
            DBUtil.cleanup(preparedStatement);
        }
    }
View Full Code Here

Examples of org.apache.airavata.credential.store.store.CredentialStoreException

            stringBuilder.append("gateway - ").append(user.getGatewayName());
            stringBuilder.append("community user name - ").append(user.getUserName());

            log.error(stringBuilder.toString(), e);

            throw new CredentialStoreException(stringBuilder.toString(), e);
        } finally {
            DBUtil.cleanup(preparedStatement);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.