public final class Md5HMacKeyGenerator extends HMacKeyGenerator
It is designed to generate symmetric keys that can be used with the HmacMD5
keyed-hashing for message authentication (HMAC) algorithm. An instance of
this algorithm can be obtained using the Java Cryptography Architecture
(JCA), by requesting an 'HmacMD5' key generator from the
Entrust cryptographic
service provider. This can be done using the following call:
KeyGenerator.getInstance("HmacMD5", "Entrust");The keys that are generated are in 'RAW' format. These keys can be of any length (any number of bytes), but it is recommended that they be at least 128 bits (16 bytes) in length. This algorithm does not use algorithm parameters; if provided during initialization they will be ignored.
This class SHOULD NOT be used directly; it should only be used through the JCA/JCE.
Md5HMac| Constructor and Description |
|---|
Md5HMacKeyGenerator()
The constructor; creates a new instance of the HmacMD5 key generation
algorithm.
|
engineGenerateKey, engineInit, engineInit, engineInitpublic Md5HMacKeyGenerator()
Applications should not use this constructor, instead the key generation
algorithm should be requested from the appropriate JCA/JCE cryptographic
service provider as follows:
KeyGenerator.getInstance("HmacMD5", "Entrust").