public final class HmacPrfKeyManager extends Object
HmacPrfKey keys and produces new instances of PrfHmacJce.| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
hmacSha256Template()
Returns a
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
Key size: 32 bytes
Hash function: SHA256
Prefix type: KeyTemplate.OutputPrefixType#RAW
|
static KeyTemplate |
hmacSha512Template()
Returns a
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
Key size: 64 bytes
Hash function: SHA512
Prefix type: KeyTemplate.OutputPrefixType#RAW
|
static void |
register(boolean newKeyAllowed) |
public static void register(boolean newKeyAllowed)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static final KeyTemplate hmacSha256Template()
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
KeyTemplate.OutputPrefixType#RAW
public static final KeyTemplate hmacSha512Template()
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
KeyTemplate.OutputPrefixType#RAW