- java.lang.Object
-
- io.github.mmm.crypto.hash.HashFactoryCombined
-
- All Implemented Interfaces:
AbstractCryptoFactory
,HashFactory
public class HashFactoryCombined extends Object implements HashFactory
The implementation ofHashFactory
that combines multipleHashFactory
instances 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 HashCreator
newHashCreator()
String
toString()
-
-
-
Constructor Detail
-
HashFactoryCombined
public HashFactoryCombined(HashFactory[] factories)
The constructor.- Parameters:
factories
- theHashFactory
instances to combine.
-
-
Method Detail
-
newHashCreator
public HashCreator newHashCreator()
- Specified by:
newHashCreator
in interfaceHashFactory
- Returns:
- a new instance of
HashCreator
for the configured hash algorithm of this factory.
-
-