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
public class GoogleKmsSignature extends SignatureSpi
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 Classes Modifier and Type Class Description static classGoogleKmsSignature.RSAPSSImplements generic RSA-PSS signing.static classGoogleKmsSignature.WithSHA256Implements signing with the SHA-256 message digest.static classGoogleKmsSignature.WithSHA384Implements signing with the SHA-384 message digest.static classGoogleKmsSignature.WithSHA512Implements signing with the SHA-512 message digest.
-
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 ObjectengineGetParameter(String param)Deprecated.protected voidengineInitSign(PrivateKey privateKey)protected voidengineInitVerify(PublicKey publicKey)protected voidengineSetParameter(String param, Object value)Deprecated.protected byte[]engineSign()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 Detail
-
engineInitVerify
protected void engineInitVerify(PublicKey publicKey)
- Specified by:
engineInitVerifyin classSignatureSpi
-
engineInitSign
protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException
- 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
protected byte[] engineSign() throws SignatureException- 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 protected Object engineGetParameter(String param) throws InvalidParameterException
Deprecated.- Specified by:
engineGetParameterin classSignatureSpi- Throws:
InvalidParameterException
-
-