/** * Create a raw implementation of this password type. No validation of the content is performed, and the password * must be "adopted" in to a {@link PasswordFactory} (via the {@link PasswordFactory#translate(Password)} method) * before it can be validated and used to verify guesses. * * @param algorithm the algorithm name * @param digest the digest * @param salt the salt * @return the raw password implementation */ static SaltedSimpleDigestPassword createRaw(final String algorithm, final byte[] digest, final byte[] salt) { return new RawSaltedSimpleDigestPassword(algorithm, digest.clone(), salt.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawSaltedSimpleDigestPassword)) { return false; } RawSaltedSimpleDigestPassword other = (RawSaltedSimpleDigestPassword) obj; return getAlgorithm().equals(other.getAlgorithm()) && Arrays.equals(digest, other.digest) && Arrays.equals(salt, other.salt); } }
public int hashCode() { return multiHashOrdered(multiHashOrdered(Arrays.hashCode(digest), Arrays.hashCode(salt)), getAlgorithm().hashCode()); }
/** * Create a raw implementation of this password type. No validation of the content is performed, and the password * must be "adopted" in to a {@link PasswordFactory} (via the {@link PasswordFactory#translate(Password)} method) * before it can be validated and used to verify guesses. * * @param algorithm the algorithm name * @param digest the digest * @param salt the salt * @return the raw password implementation */ static SaltedSimpleDigestPassword createRaw(final String algorithm, final byte[] digest, final byte[] salt) { return new RawSaltedSimpleDigestPassword(algorithm, digest.clone(), salt.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawSaltedSimpleDigestPassword)) { return false; } RawSaltedSimpleDigestPassword other = (RawSaltedSimpleDigestPassword) obj; return getAlgorithm().equals(other.getAlgorithm()) && Arrays.equals(digest, other.digest) && Arrays.equals(salt, other.salt); } }
/** * Create a raw implementation of this password type. No validation of the content is performed, and the password * must be "adopted" in to a {@link PasswordFactory} (via the {@link PasswordFactory#translate(Password)} method) * before it can be validated and used to verify guesses. * * @param algorithm the algorithm name * @param digest the digest * @param salt the salt * @return the raw password implementation */ static SaltedSimpleDigestPassword createRaw(final String algorithm, final byte[] digest, final byte[] salt) { return new RawSaltedSimpleDigestPassword(algorithm, digest.clone(), salt.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawSaltedSimpleDigestPassword)) { return false; } RawSaltedSimpleDigestPassword other = (RawSaltedSimpleDigestPassword) obj; return getAlgorithm().equals(other.getAlgorithm()) && Arrays.equals(digest, other.digest) && Arrays.equals(salt, other.salt); } }
/** * Create a raw implementation of this password type. No validation of the content is performed, and the password * must be "adopted" in to a {@link PasswordFactory} (via the {@link PasswordFactory#translate(Password)} method) * before it can be validated and used to verify guesses. * * @param algorithm the algorithm name * @param digest the digest * @param salt the salt * @return the raw password implementation */ static SaltedSimpleDigestPassword createRaw(final String algorithm, final byte[] digest, final byte[] salt) { return new RawSaltedSimpleDigestPassword(algorithm, digest.clone(), salt.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawSaltedSimpleDigestPassword)) { return false; } RawSaltedSimpleDigestPassword other = (RawSaltedSimpleDigestPassword) obj; return getAlgorithm().equals(other.getAlgorithm()) && Arrays.equals(digest, other.digest) && Arrays.equals(salt, other.salt); } }
public int hashCode() { return multiHashOrdered(multiHashOrdered(Arrays.hashCode(digest), Arrays.hashCode(salt)), getAlgorithm().hashCode()); }
public int hashCode() { return multiHashOrdered(multiHashOrdered(Arrays.hashCode(digest), Arrays.hashCode(salt)), getAlgorithm().hashCode()); }
public int hashCode() { return multiHashOrdered(multiHashOrdered(Arrays.hashCode(digest), Arrays.hashCode(salt)), getAlgorithm().hashCode()); }