public final class HmacKeyManager extends Object
HmacKey keys and produces new instances of PrfHmacJce.| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
hmacSha256HalfDigestTemplate() |
static KeyTemplate |
hmacSha256Template() |
static KeyTemplate |
hmacSha512HalfDigestTemplate() |
static KeyTemplate |
hmacSha512Template() |
static void |
register(boolean newKeyAllowed) |
public static void register(boolean newKeyAllowed)
throws GeneralSecurityException
GeneralSecurityExceptionpublic static final KeyTemplate hmacSha256HalfDigestTemplate()
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
KeyTemplate.OutputPrefixType#TINK
public static final KeyTemplate hmacSha256Template()
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
KeyTemplate.OutputPrefixType#TINK
public static final KeyTemplate hmacSha512HalfDigestTemplate()
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
KeyTemplate.OutputPrefixType#TINK
public static final KeyTemplate hmacSha512Template()
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
KeyTemplate.OutputPrefixType#TINK