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
public class VaultSignature extends SignatureSpi
Provides signature support using the Hashicorp Vault transit backend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VaultSignature.EcdsaP256Sha256Signature
ECDSA with SHA-256.static class
VaultSignature.EcdsaP384Sha384Signature
ECDSA with SHA-384.static class
VaultSignature.EcdsaP521Sha512Signature
ECDSA with SHA-512.static class
VaultSignature.Ed25519Signature
Ed25519.static class
VaultSignature.GenericRsaPssSignature
Generic RSA with PSS padding.static class
VaultSignature.RsaPkcs1Sha256Signature
RSA with SHA-256 and PKCS#1 v1.5 padding.static class
VaultSignature.RsaPkcs1Sha384Signature
RSA with SHA-384 and PKCS#1 v1.5 padding.static class
VaultSignature.RsaPkcs1Sha512Signature
RSA with SHA-512 and PKCS#1 v1.5 padding.static class
VaultSignature.RsaPssSha256Signature
RSA with SHA-256 and PSS padding.static class
VaultSignature.RsaPssSha384Signature
RSA with SHA-384 and PSS padding.static class
VaultSignature.RsaPssSha512Signature
RSA with SHA-512 and PSS padding.
-
Field Summary
-
Fields inherited from class java.security.SignatureSpi
appRandom
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected 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[]
engineSign()
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 Detail
-
engineInitVerify
protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException
- Specified by:
engineInitVerify
in classSignatureSpi
- Throws:
InvalidKeyException
-
engineInitSign
protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
- 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
protected byte[] engineSign() throws SignatureException
- Specified by:
engineSign
in classSignatureSpi
- Throws:
SignatureException
-
engineVerify
protected boolean engineVerify(byte[] sigBytes) throws SignatureException
- 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 protected Object engineGetParameter(String param) throws InvalidParameterException
Deprecated.- Specified by:
engineGetParameter
in classSignatureSpi
- Throws:
InvalidParameterException
-
-