Package org.forgerock.secrets.gcpkms
Class GoogleKmsSignature
java.lang.Object
java.security.SignatureSpi
org.forgerock.secrets.gcpkms.GoogleKmsSignature
- Direct Known Subclasses:
GoogleKmsSignature.WithSHA256,GoogleKmsSignature.WithSHA384,GoogleKmsSignature.WithSHA512
Implementation of the Java Signature SPI that delegates signature operations to the Google Cloud Platform Key
Management Service. This signature implementation only supports signing. For verification you should retrieve the
public key from the KMS and validate using the existing Java signature providers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplements generic RSA-PSS signing.static classImplements signing with the SHA-256 message digest.static classImplements signing with the SHA-384 message digest.static classImplements signing with the SHA-512 message digest. -
Field Summary
Fields inherited from class java.security.SignatureSpi
appRandom -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectengineGetParameter(String param) Deprecated.protected voidengineInitSign(PrivateKey privateKey) protected voidengineInitVerify(PublicKey publicKey) protected voidengineSetParameter(String param, Object value) Deprecated.protected byte[]protected voidengineUpdate(byte b) protected voidengineUpdate(byte[] b, int off, int len) protected booleanengineVerify(byte[] sigBytes) Methods inherited from class java.security.SignatureSpi
clone, engineGetParameters, engineInitSign, engineSetParameter, engineSign, engineUpdate, engineVerify
-
Method Details
-
engineInitVerify
- Specified by:
engineInitVerifyin classSignatureSpi
-
engineInitSign
- Specified by:
engineInitSignin classSignatureSpi- Throws:
InvalidKeyException
-
engineUpdate
protected void engineUpdate(byte b) - Specified by:
engineUpdatein classSignatureSpi
-
engineUpdate
protected void engineUpdate(byte[] b, int off, int len) - Specified by:
engineUpdatein classSignatureSpi
-
engineSign
- Specified by:
engineSignin classSignatureSpi- Throws:
SignatureException
-
engineVerify
protected boolean engineVerify(byte[] sigBytes) - Specified by:
engineVerifyin classSignatureSpi
-
engineSetParameter
@Deprecated protected void engineSetParameter(String param, Object value) throws InvalidParameterException Deprecated.- Specified by:
engineSetParameterin classSignatureSpi- Throws:
InvalidParameterException
-
engineGetParameter
Deprecated.- Specified by:
engineGetParameterin classSignatureSpi- Throws:
InvalidParameterException
-