示例#1
0
  public boolean checkPassword(String attempt) {
    String encoded = Utils.getMD5(attempt);

    return (encoded.equals(metadata.get(EPersonMetadataField.PASSWORD)));
  }
示例#2
0
 public void setPassword(String password) {
   metadata.put(EPersonMetadataField.PASSWORD, Utils.getMD5(password));
   modified = true;
 }