/** * 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()); } }
/** * 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()); } }
/** * 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()); } }
/** * 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()); } }