Interface HashingStrategy
public interface HashingStrategy
Hashing Strategy manager.
This class will load system provided hashing strategies and algorithms.
- Author:
- Paulo Lopes
-
Method Summary
Modifier and TypeMethodDescriptionGet an algorithm interface by its IdHashes a password.static HashingStrategyload()Factory method to load the algorithms from the systemput(String id, HashingAlgorithm algorithm) Put or replace an algorithm into the list of system loaded algorithms.booleanTime constant password check.
-
Method Details
-
load
Factory method to load the algorithms from the system- Returns:
- a Hashing Strategy capable of hashing using the available algorithms
-
hash
-
verify
-
get
Get an algorithm interface by its Id- Parameters:
id- the algorithm id- Returns:
- the algorithm
-
put
Put or replace an algorithm into the list of system loaded algorithms.- Parameters:
id- the algorithm idalgorithm- the implementation- Returns:
- self
-