Code example for NoSuchAlgorithmException

Methods: getMessage

0
 
  public Credentials getCredentials() throws RepositoryException { 
    try { 
      return new SparseCredentials(getSparseUser()); 
    } catch (NoSuchAlgorithmException e) {
      LOGGER.error(e.getMessage(), e);
    } catch (UnsupportedEncodingException e) {
      LOGGER.error(e.getMessage(), e);
    } 
    return null; 
  } 
 
  @Override 
  public void setProperty(String name, Value value) throws RepositoryException {
    if (":oldpassword".equals(name)) {
      oldPassword = value.getString();
    } else { 
      super.setProperty(name, value);
    } 
  }