/** * 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 hash the hash * @param salt the salt * @param iterationCount the iteration count * @return the raw password implementation */ static BSDUnixDESCryptPassword createRaw(String algorithm, byte[] hash, int salt, int iterationCount) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("algorithm", algorithm); return new RawBSDUnixDESCryptPassword(algorithm, iterationCount, salt, hash.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawBSDUnixDESCryptPassword)) { return false; } RawBSDUnixDESCryptPassword other = (RawBSDUnixDESCryptPassword) obj; return iterationCount == other.iterationCount && salt == other.salt && Arrays.equals(hash, other.hash) && getAlgorithm().equals(other.getAlgorithm()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawBSDUnixDESCryptPassword)) { return false; } RawBSDUnixDESCryptPassword other = (RawBSDUnixDESCryptPassword) obj; return iterationCount == other.iterationCount && salt == other.salt && Arrays.equals(hash, other.hash) && getAlgorithm().equals(other.getAlgorithm()); } }
/** * 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 hash the hash * @param salt the salt * @param iterationCount the iteration count * @return the raw password implementation */ static BSDUnixDESCryptPassword createRaw(String algorithm, byte[] hash, int salt, int iterationCount) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("algorithm", algorithm); return new RawBSDUnixDESCryptPassword(algorithm, iterationCount, salt, hash.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawBSDUnixDESCryptPassword)) { return false; } RawBSDUnixDESCryptPassword other = (RawBSDUnixDESCryptPassword) obj; return iterationCount == other.iterationCount && salt == other.salt && Arrays.equals(hash, other.hash) && getAlgorithm().equals(other.getAlgorithm()); } }
/** * 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 hash the hash * @param salt the salt * @param iterationCount the iteration count * @return the raw password implementation */ static BSDUnixDESCryptPassword createRaw(String algorithm, byte[] hash, int salt, int iterationCount) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("algorithm", algorithm); return new RawBSDUnixDESCryptPassword(algorithm, iterationCount, salt, hash.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawBSDUnixDESCryptPassword)) { return false; } RawBSDUnixDESCryptPassword other = (RawBSDUnixDESCryptPassword) obj; return iterationCount == other.iterationCount && salt == other.salt && Arrays.equals(hash, other.hash) && getAlgorithm().equals(other.getAlgorithm()); } }
/** * 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 hash the hash * @param salt the salt * @param iterationCount the iteration count * @return the raw password implementation */ static BSDUnixDESCryptPassword createRaw(String algorithm, byte[] hash, int salt, int iterationCount) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("algorithm", algorithm); return new RawBSDUnixDESCryptPassword(algorithm, iterationCount, salt, hash.clone()); } }