- java.lang.Object
-
- io.github.mmm.crypto.hash.HashFactoryCombined
-
- All Implemented Interfaces:
AbstractCryptoFactory,HashFactory
public class HashFactoryCombined extends Object implements HashFactory
The implementation ofHashFactorythat combines multipleHashFactoryinstances by sequentially applying the hashes.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description HashFactoryCombined(HashFactory[] factories)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HashCreatornewHashCreator()StringtoString()
-
-
-
Constructor Detail
-
HashFactoryCombined
public HashFactoryCombined(HashFactory[] factories)
The constructor.- Parameters:
factories- theHashFactoryinstances to combine.
-
-
Method Detail
-
newHashCreator
public HashCreator newHashCreator()
- Specified by:
newHashCreatorin interfaceHashFactory- Returns:
- a new instance of
HashCreatorfor the configured hash algorithm of this factory.
-
-