BSDUnixDESCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) throws InvalidKeySpecException, InvalidParameterSpecException { this(getSaltValue(passwordSpec.getSalt()), passwordSpec.getIterationCount(), passwordSpec.getHash()); }
BCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) { this(passwordSpec.getHash().clone(), passwordSpec.getSalt().clone(), passwordSpec.getIterationCount()); }
SunUnixMD5CryptPasswordImpl(final String algorithm, final IteratedSaltedHashPasswordSpec spec) { this(algorithm, spec.getHash().clone(), spec.getSalt().clone(), spec.getIterationCount()); }
ScramDigestPasswordImpl(final String algorithm, final IteratedSaltedHashPasswordSpec spec) { this(algorithm, spec.getHash().clone(), spec.getSalt().clone(), spec.getIterationCount()); }
private static byte[] encodeIteratedSaltedHashSpec(IteratedSaltedHashPasswordSpec keySpec) throws InvalidKeySpecException { byte[] salt = keySpec.getSalt(); return new ByteStringBuilder().append(ITERATED_SALTED_HASH_SPEC_ID) .appendPackedUnsignedBE(keySpec.getIterationCount()).appendPackedUnsignedBE(salt.length).append(salt).append(keySpec.getHash()).toArray(); }
encoder.encodeOctetString(passwordSpec.getHash()); encoder.encodeOctetString(passwordSpec.getSalt()); encoder.encodeInteger(passwordSpec.getIterationCount()); encoder.endSequence(); break;
BSDUnixDESCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) throws InvalidKeySpecException, InvalidParameterSpecException { this(getSaltValue(passwordSpec.getSalt()), passwordSpec.getIterationCount(), passwordSpec.getHash()); }
BSDUnixDESCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) throws InvalidKeySpecException, InvalidParameterSpecException { this(getSaltValue(passwordSpec.getSalt()), passwordSpec.getIterationCount(), passwordSpec.getHash()); }
BSDUnixDESCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) throws InvalidKeySpecException, InvalidParameterSpecException { this(getSaltValue(passwordSpec.getSalt()), passwordSpec.getIterationCount(), passwordSpec.getHash()); }
BCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) { this(passwordSpec.getHash().clone(), passwordSpec.getSalt().clone(), passwordSpec.getIterationCount()); }
BCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) { this(passwordSpec.getHash().clone(), passwordSpec.getSalt().clone(), passwordSpec.getIterationCount()); }
BCryptPasswordImpl(final IteratedSaltedHashPasswordSpec passwordSpec) { this(passwordSpec.getHash().clone(), passwordSpec.getSalt().clone(), passwordSpec.getIterationCount()); }
SunUnixMD5CryptPasswordImpl(final String algorithm, final IteratedSaltedHashPasswordSpec spec) { this(algorithm, spec.getHash().clone(), spec.getSalt().clone(), spec.getIterationCount()); }
SunUnixMD5CryptPasswordImpl(final String algorithm, final IteratedSaltedHashPasswordSpec spec) { this(algorithm, spec.getHash().clone(), spec.getSalt().clone(), spec.getIterationCount()); }
ScramDigestPasswordImpl(final String algorithm, final IteratedSaltedHashPasswordSpec spec) { this(algorithm, spec.getHash().clone(), spec.getSalt().clone(), spec.getIterationCount()); }
ScramDigestPasswordImpl(final String algorithm, final IteratedSaltedHashPasswordSpec spec) { this(algorithm, spec.getHash().clone(), spec.getSalt().clone(), spec.getIterationCount()); }
SunUnixMD5CryptPasswordImpl(final String algorithm, final IteratedSaltedHashPasswordSpec spec) { this(algorithm, spec.getHash().clone(), spec.getSalt().clone(), spec.getIterationCount()); }
private static byte[] encodeIteratedSaltedHashSpec(IteratedSaltedHashPasswordSpec keySpec) throws InvalidKeySpecException { byte[] salt = keySpec.getSalt(); return new ByteStringBuilder().append(ITERATED_SALTED_HASH_SPEC_ID) .appendPackedUnsignedBE(keySpec.getIterationCount()).appendPackedUnsignedBE(salt.length).append(salt).append(keySpec.getHash()).toArray(); }
private static byte[] encodeIteratedSaltedHashSpec(IteratedSaltedHashPasswordSpec keySpec) throws InvalidKeySpecException { byte[] salt = keySpec.getSalt(); return new ByteStringBuilder().append(ITERATED_SALTED_HASH_SPEC_ID) .appendPackedUnsignedBE(keySpec.getIterationCount()).appendPackedUnsignedBE(salt.length).append(salt).append(keySpec.getHash()).toArray(); }
private static byte[] encodeIteratedSaltedHashSpec(IteratedSaltedHashPasswordSpec keySpec) throws InvalidKeySpecException { byte[] salt = keySpec.getSalt(); return new ByteStringBuilder().append(ITERATED_SALTED_HASH_SPEC_ID) .appendPackedUnsignedBE(keySpec.getIterationCount()).appendPackedUnsignedBE(salt.length).append(salt).append(keySpec.getHash()).toArray(); }