public final class Sha512HMacKeyGenerator extends HMacKeyGenerator
It is designed to generate symmetric keys that can be used with the
HmacSHA512 keyed-hashing for message authentication (HMAC) algorithm. An
instance of this algorithm can be obtained using the Java Cryptography
Architecture (JCA), by requesting an 'HmacSHA512' key generator from the
Entrust
cryptographic service provider. This can be done using the following call:
KeyGenerator.getInstance("HmacSHA512", "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 512 bits (64 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.
Sha512HMac| Constructor and Description |
|---|
Sha512HMacKeyGenerator()
The constructor; creates a new instance of the HmacSHA512 key generation
algorithm.
|
engineGenerateKey, engineInit, engineInit, engineInitpublic Sha512HMacKeyGenerator()
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("HmacSHA512", "Entrust").