Package org.forgerock.secrets.vault
Class VaultSignature
java.lang.Object
java.security.SignatureSpi
org.forgerock.secrets.vault.VaultSignature
- Direct Known Subclasses:
VaultSignature.EcdsaP256Sha256Signature
,VaultSignature.EcdsaP384Sha384Signature
,VaultSignature.EcdsaP521Sha512Signature
,VaultSignature.Ed25519Signature
,VaultSignature.RsaPkcs1Sha256Signature
,VaultSignature.RsaPkcs1Sha384Signature
,VaultSignature.RsaPkcs1Sha512Signature
,VaultSignature.RsaPssSha256Signature
,VaultSignature.RsaPssSha384Signature
,VaultSignature.RsaPssSha512Signature
Provides signature support using the
Hashicorp Vault transit backend.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ECDSA with SHA-256.static class
ECDSA with SHA-384.static class
ECDSA with SHA-512.static class
Ed25519.static class
Generic RSA with PSS padding.static class
RSA with SHA-256 and PKCS#1 v1.5 padding.static class
RSA with SHA-384 and PKCS#1 v1.5 padding.static class
RSA with SHA-512 and PKCS#1 v1.5 padding.static class
RSA with SHA-256 and PSS padding.static class
RSA with SHA-384 and PSS padding.static class
RSA with SHA-512 and PSS padding. -
Field Summary
Fields inherited from class java.security.SignatureSpi
appRandom
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
engineGetParameter
(String param) Deprecated.protected void
engineInitSign
(PrivateKey privateKey) protected void
engineInitVerify
(PublicKey publicKey) protected void
engineSetParameter
(String param, Object value) Deprecated.protected byte[]
protected void
engineUpdate
(byte b) protected void
engineUpdate
(byte[] input, int offset, int length) protected boolean
engineVerify
(byte[] sigBytes) Methods inherited from class java.security.SignatureSpi
clone, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify
-
Method Details
-
engineInitVerify
- Specified by:
engineInitVerify
in classSignatureSpi
- Throws:
InvalidKeyException
-
engineInitSign
- Specified by:
engineInitSign
in classSignatureSpi
- Throws:
InvalidKeyException
-
engineUpdate
protected void engineUpdate(byte b) - Specified by:
engineUpdate
in classSignatureSpi
-
engineUpdate
protected void engineUpdate(byte[] input, int offset, int length) - Specified by:
engineUpdate
in classSignatureSpi
-
engineSign
- Specified by:
engineSign
in classSignatureSpi
- Throws:
SignatureException
-
engineVerify
- Specified by:
engineVerify
in classSignatureSpi
- Throws:
SignatureException
-
engineSetParameter
@Deprecated protected void engineSetParameter(String param, Object value) throws InvalidParameterException Deprecated.- Specified by:
engineSetParameter
in classSignatureSpi
- Throws:
InvalidParameterException
-
engineGetParameter
Deprecated.- Specified by:
engineGetParameter
in classSignatureSpi
- Throws:
InvalidParameterException
-