Package at.favre.lib.crypto.singlstepkdf
Class HFunctionFactory.Default.DigestFactory
- java.lang.Object
-
- at.favre.lib.crypto.singlstepkdf.HFunctionFactory.Default.DigestFactory
-
- All Implemented Interfaces:
HFunctionFactory
- Enclosing class:
- HFunctionFactory.Default
public static final class HFunctionFactory.Default.DigestFactory extends Object implements HFunctionFactory
Simple factory for message digests
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface at.favre.lib.crypto.singlstepkdf.HFunctionFactory
HFunctionFactory.Default
-
-
Constructor Summary
Constructors Constructor Description DigestFactory(String messageDigestAlgorithmName)Creates a mac factoryDigestFactory(String messageDigestAlgorithmName, Provider provider)Creates a message digest factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HFunctioncreateInstance()Creates a new instance ofMessageDigestStringgetDescription()Get a user readable description of the used H-function (e.g.
-
-
-
Constructor Detail
-
DigestFactory
public DigestFactory(String messageDigestAlgorithmName)
Creates a mac factory- Parameters:
messageDigestAlgorithmName- as used byMessageDigest.getInstance(String)
-
DigestFactory
public DigestFactory(String messageDigestAlgorithmName, Provider provider)
Creates a message digest factory- Parameters:
messageDigestAlgorithmName- as used byMessageDigest.getInstance(String)provider- what security provider, seeMessageDigest.getInstance(String, Provider); may be null to use default
-
-
Method Detail
-
createInstance
public HFunction createInstance()
Description copied from interface:HFunctionFactoryCreates a new instance ofMessageDigest- Specified by:
createInstancein interfaceHFunctionFactory- Returns:
- a new message digest instance
-
getDescription
public String getDescription()
Description copied from interface:HFunctionFactoryGet a user readable description of the used H-function (e.g. SHA-256 or HmacSha1 or similar)- Specified by:
getDescriptionin interfaceHFunctionFactory- Returns:
- description
-
-