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
public class VaultMac extends MacSpi
Provides HMAC support using the Hashicorp Vault transit backend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VaultMac.HmacSha224
HMAC-SHA-224.static class
VaultMac.HmacSha256
HMAC-SHA-256.static class
VaultMac.HmacSha384
HMAC-SHA-384.static class
VaultMac.HmacSha512
HMAC-SHA-512.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
engineDoFinal()
protected int
engineGetMacLength()
protected void
engineInit(Key key, AlgorithmParameterSpec params)
protected void
engineReset()
protected void
engineUpdate(byte input)
protected void
engineUpdate(byte[] input, int offset, int len)
-
Methods inherited from class javax.crypto.MacSpi
clone, engineUpdate
-
-
-
-
Method Detail
-
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
-
-