ConfigurableHashService

A {@code HashService} that allows configuration of its strategy via JavaBeans-compatible setter methods.

Members

Functions

setHashAlgorithmName
void setHashAlgorithmName(string name)

Sets the name of the {@link java.security.MessageDigest MessageDigest} algorithm that will be used to compute hashes.

setHashIterations
void setHashIterations(int iterations)

Sets the number of hash iterations that will be performed during hash computation.

setPrivateSalt
void setPrivateSalt(ByteSource privateSalt)

Sets the 'private' (internal) salt to be paired with a 'public' (random or supplied) salt during hash computation.

setRandomNumberGenerator
void setRandomNumberGenerator(RandomNumberGenerator rng)

Sets a source of randomness used to generate public salts that will in turn be used during hash computation.

Inherited Members

From HashService

computeHash
Hash computeHash(HashRequest request)

Computes a hash based on the given request.

Meta