public interface ConfigurableHashService extends HashService
HashService that allows configuration of its strategy via JavaBeans-compatible setter methods.| Modifier and Type | Method and Description |
|---|---|
void |
setHashAlgorithmName(String name)
Sets the name of the
MessageDigest algorithm that will be used to compute
hashes. |
void |
setHashIterations(int iterations)
Sets the number of hash iterations that will be performed during hash computation.
|
void |
setPrivateSalt(ByteSource privateSalt)
Sets the 'private' (internal) salt to be paired with a 'public' (random or supplied) salt during hash computation.
|
void |
setRandomNumberGenerator(RandomNumberGenerator rng)
Sets a source of randomness used to generate public salts that will in turn be used during hash computation.
|
computeHashvoid setPrivateSalt(ByteSource privateSalt)
privateSalt - the 'private' internal salt to be paired with a 'public' (random or supplied) salt during
hash computation.void setHashIterations(int iterations)
iterations - the number of hash iterations that will be performed during hash computation.void setHashAlgorithmName(String name)
MessageDigest algorithm that will be used to compute
hashes.name - the name of the MessageDigest algorithm that will be used to
compute hashes.void setRandomNumberGenerator(RandomNumberGenerator rng)
rng - a source of randomness used to generate public salts that will in turn be used during hash computation.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.