class GitCredentialServiceImpl implements GitCredentialService {

	@Override
	public ExploratoryGitCredsDTO getGitCredentials(String user) {
		log.debug("Loading GIT creds for user {}", user);
		try {
			return gitCredsDAO.findGitCreds(user, CLEAR_USER_PASSWORD);
		} catch (Exception t) {
			log.error("Cannot load list of GIT creds for user: {}", user, t);
			throw new DlabException(String.format("Cannot load GIT credentials for user %s: %s",
					user, t.getLocalizedMessage()), t);
		}
	}

}