- 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.sha2.Sha2
-
- io.github.mmm.crypto.hash.sha2.Sha512
-
- All Implemented Interfaces:
AbstractCryptoFactory
,AbstractGetIterationCount
,CryptoAlgorithm
,HashFactory
public class Sha512 extends Sha2
HashConfig
for SHA-512.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALGORITHM_SHA_512
Thealgorithm
name "SHA-512".static Sha512
SHA_512
Sha512
using default provider.static Sha512
SHA_512_X2
Sha512
hashing twice using 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 Sha512(int iterationCount)
The constructor.Sha512(SecurityProvider provider)
The constructor.Sha512(SecurityProvider provider, int iterationCount)
The constructor.
-
Method Summary
-
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_SHA_512
public static final String ALGORITHM_SHA_512
Thealgorithm
name "SHA-512".- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Sha512
public Sha512(int iterationCount)
The constructor.- Parameters:
iterationCount
- theiteration count
.
-
Sha512
public Sha512(SecurityProvider provider)
The constructor.- Parameters:
provider
- theSecurityProvider
to use.
-
Sha512
public Sha512(SecurityProvider provider, int iterationCount)
The constructor.- Parameters:
provider
- theSecurityProvider
to use.iterationCount
- theiteration count
.
-
-