/** * 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 seed the seed * @param sequenceNumber the sequence number * @return the raw password implementation */ static OneTimePassword createRaw(String algorithm, byte[] hash, String seed, int sequenceNumber) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("seed", seed); Assert.checkNotNullParam("algorithm", algorithm); return new RawOneTimePassword(algorithm, hash.clone(), seed, sequenceNumber); } }
/** * 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 seed the seed * @param sequenceNumber the sequence number * @return the raw password implementation */ static OneTimePassword createRaw(String algorithm, byte[] hash, String seed, int sequenceNumber) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("seed", seed); Assert.checkNotNullParam("algorithm", algorithm); return new RawOneTimePassword(algorithm, hash.clone(), seed, sequenceNumber); } }
/** * 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 seed the seed * @param sequenceNumber the sequence number * @return the raw password implementation */ static OneTimePassword createRaw(String algorithm, byte[] hash, String seed, int sequenceNumber) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("seed", seed); Assert.checkNotNullParam("algorithm", algorithm); return new RawOneTimePassword(algorithm, hash.clone(), seed, sequenceNumber); } }
/** * 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 seed the seed * @param sequenceNumber the sequence number * @return the raw password implementation */ static OneTimePassword createRaw(String algorithm, byte[] hash, String seed, int sequenceNumber) { Assert.checkNotNullParam("hash", hash); Assert.checkNotNullParam("seed", seed); Assert.checkNotNullParam("algorithm", algorithm); return new RawOneTimePassword(algorithm, hash.clone(), seed, sequenceNumber); } }