addToMap(sscfPerson,credentials);
return credentials;
} catch (InvalidKeySpecException e) {
logger.severe(e.getMessage());
throw new BadCredentialsException(e);
} catch (InvalidKeyException e) {
logger.severe(e.getMessage());
throw new BadCredentialsException(e);
} catch (InvalidAlgorithmParameterException e) {
logger.severe(e.getMessage());
throw new BadCredentialsException(e);
} catch (IllegalBlockSizeException e) {
logger.severe(e.getMessage());
throw new BadCredentialsException(e);
} catch (BadPaddingException e) {
logger.severe(e.getMessage());
throw new BadCredentialsException(e);
} catch (UnsupportedEncodingException e) {
logger.severe(e.getMessage());
throw new BadCredentialsException();
} catch (IOException e) {
logger.severe(e.getMessage());
throw new BadCredentialsException(e);
}
}
throw new BadCredentialsException();
}