Package org.forgerock.secrets.gcpkms
Class GoogleKmsSignature.RSAPSS
java.lang.Object
java.security.SignatureSpi
org.forgerock.secrets.gcpkms.GoogleKmsSignature.RSAPSS
- Enclosing class:
- GoogleKmsSignature
Implements generic RSA-PSS signing. The caller must call
Signature.setParameter(AlgorithmParameterSpec)
with a PSSParameterSpec
to choose
the specific message digest. Only the MGF1 mask generation function is supported, and the message digest used
for MGF1 must match that used for the message.-
Field Summary
Fields inherited from class java.security.SignatureSpi
appRandom
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
engineGetParameter
(String param) protected void
engineInitSign
(PrivateKey privateKey) protected void
engineInitVerify
(PublicKey publicKey) protected void
engineSetParameter
(String param, Object value) protected void
protected byte[]
protected void
engineUpdate
(byte b) protected void
engineUpdate
(byte[] b, int off, int len) protected boolean
engineVerify
(byte[] sigBytes) Methods inherited from class java.security.SignatureSpi
clone, engineGetParameters, engineInitSign, engineSign, engineUpdate, engineVerify
-
Constructor Details
-
RSAPSS
public RSAPSS()
-
-
Method Details
-
engineInitVerify
- Specified by:
engineInitVerify
in classSignatureSpi
-
engineInitSign
- Specified by:
engineInitSign
in classSignatureSpi
- Throws:
InvalidKeyException
-
engineUpdate
protected void engineUpdate(byte b) - Specified by:
engineUpdate
in classSignatureSpi
-
engineUpdate
protected void engineUpdate(byte[] b, int off, int len) - Specified by:
engineUpdate
in classSignatureSpi
-
engineSign
- Specified by:
engineSign
in classSignatureSpi
- Throws:
SignatureException
-
engineVerify
protected boolean engineVerify(byte[] sigBytes) - Specified by:
engineVerify
in classSignatureSpi
-
engineSetParameter
- Specified by:
engineSetParameter
in classSignatureSpi
- Throws:
InvalidParameterException
-
engineGetParameter
- Specified by:
engineGetParameter
in classSignatureSpi
- Throws:
InvalidParameterException
-
engineSetParameter
protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException - Overrides:
engineSetParameter
in classSignatureSpi
- Throws:
InvalidAlgorithmParameterException
-