org.apache.shiro.crypto.hash
Interface ConfigurableHashService

All Superinterfaces:
HashService
All Known Implementing Classes:
DefaultHashService

public interface ConfigurableHashService
extends HashService

A HashService that allows configuration of its strategy via JavaBeans-compatible setter methods.

Since:
1.2

Method Summary
 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.
 
Methods inherited from interface org.apache.shiro.crypto.hash.HashService
computeHash
 

Method Detail

setPrivateSalt

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

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

setHashIterations

void setHashIterations(int iterations)
Sets the number of hash iterations that will be performed during hash computation.

Parameters:
iterations - the number of hash iterations that will be performed during hash computation.

setHashAlgorithmName

void setHashAlgorithmName(String name)
Sets the name of the MessageDigest algorithm that will be used to compute hashes.

Parameters:
name - the name of the MessageDigest algorithm that will be used to compute hashes.

setRandomNumberGenerator

void setRandomNumberGenerator(RandomNumberGenerator rng)
Sets a source of randomness used to generate public salts that will in turn be used during hash computation.

Parameters:
rng - a source of randomness used to generate public salts that will in turn be used during hash computation.


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.