- java.lang.Object
-
- io.github.mmm.crypto.CryptoConfig
-
- io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
-
- io.github.mmm.crypto.hash.HashConfig
-
- io.github.mmm.crypto.hash.sha1.Sha1
-
- All Implemented Interfaces:
AbstractCryptoFactory,AbstractGetIterationCount,CryptoAlgorithm,HashFactory
public class Sha1 extends HashConfig
HashConfigforSHA1.
ATTENTION:
Please note that SHA1 is a weak hash algorithm that shall not be used for secure hashing (e.g. for signing).- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringALGORITHM_SHA1Thealgorithmname "SHA1".static Sha1SHA1Sha1using default provider.-
Fields inherited from class io.github.mmm.crypto.hash.HashConfig
ALGORITHM_NONE
-
Fields inherited from class io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
algorithm
-
Fields inherited from class io.github.mmm.crypto.CryptoConfig
provider
-
-
Constructor Summary
Constructors Constructor Description Sha1(SecurityProvider provider, int iterationCount)The constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sha1of(int iterationCount)-
Methods inherited from class io.github.mmm.crypto.hash.HashConfig
decrementIterationCount, getIterationCount, newAccess, newHashCreator
-
Methods inherited from class io.github.mmm.crypto.algorithm.CryptoAlgorithmConfig
getAlgorithm
-
Methods inherited from class io.github.mmm.crypto.CryptoConfig
getProvider
-
-
-
-
Field Detail
-
ALGORITHM_SHA1
public static final String ALGORITHM_SHA1
Thealgorithmname "SHA1".- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Sha1
public Sha1(SecurityProvider provider, int iterationCount)
The constructor.- Parameters:
provider- theSecurityProvider.iterationCount- theiteration count.
-
-
Method Detail
-
of
public static Sha1 of(int iterationCount)
- Parameters:
iterationCount- theiteration count.- Returns:
- new instance with the given
iteration count.
-
-