/** * Create a raw instance of this password type. * * @param algorithm the algorithm name (must not be {@code null}) * @param initialKeyMaterial the initial key material (must not be {@code null}) * @param iterationCount the iteration count * @param salt the salt (must not be {@code null}) * @param maskedPasswordBytes the masked password bytes (must not be {@code null}) * @return the raw instance (not {@code null}) */ static MaskedPassword createRaw(String algorithm, char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] maskedPasswordBytes) { Assert.checkNotNullParam("algorithm", algorithm); Assert.checkNotNullParam("initialKeyMaterial", initialKeyMaterial); Assert.checkNotNullParam("salt", salt); Assert.checkNotNullParam("maskedPasswordBytes", maskedPasswordBytes); return new RawMaskedPassword(algorithm, initialKeyMaterial.clone(), iterationCount, salt.clone(), maskedPasswordBytes.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawMaskedPassword)) { return false; } RawMaskedPassword other = (RawMaskedPassword) obj; return iterationCount == other.iterationCount && Arrays.equals(initialKeyMaterial, other.initialKeyMaterial) && Arrays.equals(salt, other.salt) && Arrays.equals(maskedPasswordBytes, other.maskedPasswordBytes) && getAlgorithm().equals(other.getAlgorithm()); } }
public int hashCode() { return multiHashOrdered(multiHashOrdered(multiHashOrdered(multiHashOrdered(Arrays.hashCode(initialKeyMaterial), Arrays.hashCode(salt)), Arrays.hashCode(maskedPasswordBytes)), iterationCount), getAlgorithm().hashCode()); }
/** * Create a raw instance of this password type. * * @param algorithm the algorithm name (must not be {@code null}) * @param initialKeyMaterial the initial key material (must not be {@code null}) * @param iterationCount the iteration count * @param salt the salt (must not be {@code null}) * @param maskedPasswordBytes the masked password bytes (must not be {@code null}) * @return the raw instance (not {@code null}) */ static MaskedPassword createRaw(String algorithm, char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] maskedPasswordBytes) { Assert.checkNotNullParam("algorithm", algorithm); Assert.checkNotNullParam("initialKeyMaterial", initialKeyMaterial); Assert.checkNotNullParam("salt", salt); Assert.checkNotNullParam("maskedPasswordBytes", maskedPasswordBytes); return new RawMaskedPassword(algorithm, initialKeyMaterial.clone(), iterationCount, salt.clone(), maskedPasswordBytes.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawMaskedPassword)) { return false; } RawMaskedPassword other = (RawMaskedPassword) obj; return iterationCount == other.iterationCount && Arrays.equals(initialKeyMaterial, other.initialKeyMaterial) && Arrays.equals(salt, other.salt) && Arrays.equals(maskedPasswordBytes, other.maskedPasswordBytes) && getAlgorithm().equals(other.getAlgorithm()); } }
/** * Create a raw instance of this password type. * * @param algorithm the algorithm name (must not be {@code null}) * @param initialKeyMaterial the initial key material (must not be {@code null}) * @param iterationCount the iteration count * @param salt the salt (must not be {@code null}) * @param maskedPasswordBytes the masked password bytes (must not be {@code null}) * @return the raw instance (not {@code null}) */ static MaskedPassword createRaw(String algorithm, char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] maskedPasswordBytes) { Assert.checkNotNullParam("algorithm", algorithm); Assert.checkNotNullParam("initialKeyMaterial", initialKeyMaterial); Assert.checkNotNullParam("salt", salt); Assert.checkNotNullParam("maskedPasswordBytes", maskedPasswordBytes); return new RawMaskedPassword(algorithm, initialKeyMaterial.clone(), iterationCount, salt.clone(), maskedPasswordBytes.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawMaskedPassword)) { return false; } RawMaskedPassword other = (RawMaskedPassword) obj; return iterationCount == other.iterationCount && Arrays.equals(initialKeyMaterial, other.initialKeyMaterial) && Arrays.equals(salt, other.salt) && Arrays.equals(maskedPasswordBytes, other.maskedPasswordBytes) && getAlgorithm().equals(other.getAlgorithm()); } }
/** * Create a raw instance of this password type. * * @param algorithm the algorithm name (must not be {@code null}) * @param initialKeyMaterial the initial key material (must not be {@code null}) * @param iterationCount the iteration count * @param salt the salt (must not be {@code null}) * @param maskedPasswordBytes the masked password bytes (must not be {@code null}) * @return the raw instance (not {@code null}) */ static MaskedPassword createRaw(String algorithm, char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] maskedPasswordBytes) { Assert.checkNotNullParam("algorithm", algorithm); Assert.checkNotNullParam("initialKeyMaterial", initialKeyMaterial); Assert.checkNotNullParam("salt", salt); Assert.checkNotNullParam("maskedPasswordBytes", maskedPasswordBytes); return new RawMaskedPassword(algorithm, initialKeyMaterial.clone(), iterationCount, salt.clone(), maskedPasswordBytes.clone()); } }
public boolean equals(final Object obj) { if (! (obj instanceof RawMaskedPassword)) { return false; } RawMaskedPassword other = (RawMaskedPassword) obj; return iterationCount == other.iterationCount && Arrays.equals(initialKeyMaterial, other.initialKeyMaterial) && Arrays.equals(salt, other.salt) && Arrays.equals(maskedPasswordBytes, other.maskedPasswordBytes) && getAlgorithm().equals(other.getAlgorithm()); } }
public int hashCode() { return multiHashOrdered(multiHashOrdered(multiHashOrdered(multiHashOrdered(Arrays.hashCode(initialKeyMaterial), Arrays.hashCode(salt)), Arrays.hashCode(maskedPasswordBytes)), iterationCount), getAlgorithm().hashCode()); }
public int hashCode() { return multiHashOrdered(multiHashOrdered(multiHashOrdered(multiHashOrdered(Arrays.hashCode(initialKeyMaterial), Arrays.hashCode(salt)), Arrays.hashCode(maskedPasswordBytes)), iterationCount), getAlgorithm().hashCode()); }
public int hashCode() { return multiHashOrdered(multiHashOrdered(multiHashOrdered(multiHashOrdered(Arrays.hashCode(initialKeyMaterial), Arrays.hashCode(salt)), Arrays.hashCode(maskedPasswordBytes)), iterationCount), getAlgorithm().hashCode()); }