@Test public void shouldNotEqualDifferentPlaintext() { HashedValue hashed = new HashedValue("test"); assertThat(hashed.equalsPlaintext("nottest")).isFalse(); }
public boolean equalsPlaintext(String plaintext) { return BCrypt.checkpw(plaintext, hashedValue); }
HashedValue { public boolean equalsPlaintext(String plaintext) { return BCrypt.checkpw(plaintext, hashedValue); } }
HashedValue { public boolean equalsPlaintext(String plaintext) { return BCrypt.checkpw(plaintext, hashedValue); } HashedValue(String plaintext); }
HashedValue { public boolean equalsPlaintext(String plaintext) { return BCrypt.checkpw(plaintext, hashedValue); } HashedValue(String plaintext); boolean equalsPlaintext(String plaintext); }
HashedValue { public boolean equalsPlaintext(String plaintext) { return BCrypt.checkpw(plaintext, hashedValue); } HashedValue(String plaintext); boolean equalsPlaintext(String plaintext);  }