Package org.forgerock.secrets.vault
Class VaultMac
java.lang.Object
javax.crypto.MacSpi
org.forgerock.secrets.vault.VaultMac
- Direct Known Subclasses:
VaultMac.HmacSha224
,VaultMac.HmacSha256
,VaultMac.HmacSha384
,VaultMac.HmacSha512
Provides HMAC support using the Hashicorp Vault
transit backend.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
HMAC-SHA-224.static class
HMAC-SHA-256.static class
HMAC-SHA-384.static class
HMAC-SHA-512. -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
protected int
protected void
engineInit
(Key key, AlgorithmParameterSpec params) protected void
protected void
engineUpdate
(byte input) protected void
engineUpdate
(byte[] input, int offset, int len) Methods inherited from class javax.crypto.MacSpi
clone, engineUpdate
-
Method Details
-
engineGetMacLength
protected int engineGetMacLength()- Specified by:
engineGetMacLength
in classMacSpi
-
engineInit
protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException - Specified by:
engineInit
in classMacSpi
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
-
engineUpdate
protected void engineUpdate(byte input) - Specified by:
engineUpdate
in classMacSpi
-
engineUpdate
protected void engineUpdate(byte[] input, int offset, int len) - Specified by:
engineUpdate
in classMacSpi
-
engineDoFinal
protected byte[] engineDoFinal()- Specified by:
engineDoFinal
in classMacSpi
-
engineReset
protected void engineReset()- Specified by:
engineReset
in classMacSpi
-