Package org.forgerock.secrets.gcpkms
Class GoogleKmsSignature.RSAPSS
- java.lang.Object
-
- java.security.SignatureSpi
-
- org.forgerock.secrets.gcpkms.GoogleKmsSignature.RSAPSS
-
- Enclosing class:
- GoogleKmsSignature
public static class GoogleKmsSignature.RSAPSS extends SignatureSpi
Implements generic RSA-PSS signing. The caller must callSignature.setParameter(AlgorithmParameterSpec)
with aPSSParameterSpec
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
Constructors Constructor Description RSAPSS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
engineGetParameter(String param)
protected void
engineInitSign(PrivateKey privateKey)
protected void
engineInitVerify(PublicKey publicKey)
protected void
engineSetParameter(String param, Object value)
protected void
engineSetParameter(AlgorithmParameterSpec params)
protected byte[]
engineSign()
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
-
-
-
-
Method Detail
-
engineInitVerify
protected void engineInitVerify(PublicKey publicKey)
- Specified by:
engineInitVerify
in classSignatureSpi
-
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[] b, int off, int len)
- Specified by:
engineUpdate
in classSignatureSpi
-
engineSign
protected byte[] engineSign() throws SignatureException
- Specified by:
engineSign
in classSignatureSpi
- Throws:
SignatureException
-
engineVerify
protected boolean engineVerify(byte[] sigBytes)
- Specified by:
engineVerify
in classSignatureSpi
-
engineSetParameter
protected void engineSetParameter(String param, Object value) throws InvalidParameterException
- Specified by:
engineSetParameter
in classSignatureSpi
- Throws:
InvalidParameterException
-
engineGetParameter
protected Object engineGetParameter(String param) throws InvalidParameterException
- Specified by:
engineGetParameter
in classSignatureSpi
- Throws:
InvalidParameterException
-
engineSetParameter
protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
- Overrides:
engineSetParameter
in classSignatureSpi
- Throws:
InvalidAlgorithmParameterException
-
-