Package at.favre.lib.crypto.singlstepkdf
Class HFunctionFactory.Default.MacFactory
- java.lang.Object
-
- at.favre.lib.crypto.singlstepkdf.HFunctionFactory.Default.MacFactory
-
- All Implemented Interfaces:
HFunctionFactory
- Enclosing class:
- HFunctionFactory.Default
public static final class HFunctionFactory.Default.MacFactory extends Object implements HFunctionFactory
Simple factory for MAC
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface at.favre.lib.crypto.singlstepkdf.HFunctionFactory
HFunctionFactory.Default
-
-
Constructor Summary
Constructors Constructor Description MacFactory(String macAlgorithmName)Creates a mac factoryMacFactory(String macAlgorithmName, 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
-
MacFactory
public MacFactory(String macAlgorithmName)
Creates a mac factory- Parameters:
macAlgorithmName- as used byMac.getInstance(String)
-
MacFactory
public MacFactory(String macAlgorithmName, Provider provider)
Creates a message digest factory- Parameters:
macAlgorithmName- as used byMac.getInstance(String)provider- what security provider, seeMac.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
-
-