Class PSSSignatureSpi
- java.lang.Object
-
- java.security.SignatureSpi
-
- org.bouncycastle.jcajce.provider.asymmetric.rsa.PSSSignatureSpi
-
- Direct Known Subclasses:
PSSSignatureSpi.nonePSS
,PSSSignatureSpi.PSSwithRSA
,PSSSignatureSpi.SHA1withRSA
,PSSSignatureSpi.SHA224withRSA
,PSSSignatureSpi.SHA256withRSA
,PSSSignatureSpi.SHA3_224withRSA
,PSSSignatureSpi.SHA3_256withRSA
,PSSSignatureSpi.SHA3_384withRSA
,PSSSignatureSpi.SHA3_512withRSA
,PSSSignatureSpi.SHA384withRSA
,PSSSignatureSpi.SHA512_224withRSA
,PSSSignatureSpi.SHA512_256withRSA
,PSSSignatureSpi.SHA512withRSA
public class PSSSignatureSpi extends java.security.SignatureSpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PSSSignatureSpi.nonePSS
static class
PSSSignatureSpi.PSSwithRSA
static class
PSSSignatureSpi.SHA1withRSA
static class
PSSSignatureSpi.SHA224withRSA
static class
PSSSignatureSpi.SHA256withRSA
static class
PSSSignatureSpi.SHA3_224withRSA
static class
PSSSignatureSpi.SHA3_256withRSA
static class
PSSSignatureSpi.SHA3_384withRSA
static class
PSSSignatureSpi.SHA3_512withRSA
static class
PSSSignatureSpi.SHA384withRSA
static class
PSSSignatureSpi.SHA512_224withRSA
static class
PSSSignatureSpi.SHA512_256withRSA
static class
PSSSignatureSpi.SHA512withRSA
-
Constructor Summary
Constructors Modifier Constructor Description protected
PSSSignatureSpi(AsymmetricBlockCipher signer, java.security.spec.PSSParameterSpec paramSpecArg)
protected
PSSSignatureSpi(AsymmetricBlockCipher signer, java.security.spec.PSSParameterSpec baseParamSpec, boolean isRaw)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected java.lang.Object
engineGetParameter(java.lang.String param)
protected java.security.AlgorithmParameters
engineGetParameters()
protected void
engineInitSign(java.security.PrivateKey privateKey)
protected void
engineInitSign(java.security.PrivateKey privateKey, java.security.SecureRandom random)
protected void
engineInitVerify(java.security.PublicKey publicKey)
protected void
engineSetParameter(java.lang.String param, java.lang.Object value)
Deprecated.protected void
engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
protected byte[]
engineSign()
protected void
engineUpdate(byte b)
protected void
engineUpdate(byte[] b, int off, int len)
protected boolean
engineVerify(byte[] sigBytes)
-
-
-
Constructor Detail
-
PSSSignatureSpi
protected PSSSignatureSpi(AsymmetricBlockCipher signer, java.security.spec.PSSParameterSpec paramSpecArg)
-
PSSSignatureSpi
protected PSSSignatureSpi(AsymmetricBlockCipher signer, java.security.spec.PSSParameterSpec baseParamSpec, boolean isRaw)
-
-
Method Detail
-
engineInitVerify
protected void engineInitVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException
- Specified by:
engineInitVerify
in classjava.security.SignatureSpi
- Throws:
java.security.InvalidKeyException
-
engineInitSign
protected void engineInitSign(java.security.PrivateKey privateKey, java.security.SecureRandom random) throws java.security.InvalidKeyException
- Overrides:
engineInitSign
in classjava.security.SignatureSpi
- Throws:
java.security.InvalidKeyException
-
engineInitSign
protected void engineInitSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException
- Specified by:
engineInitSign
in classjava.security.SignatureSpi
- Throws:
java.security.InvalidKeyException
-
engineUpdate
protected void engineUpdate(byte b) throws java.security.SignatureException
- Specified by:
engineUpdate
in classjava.security.SignatureSpi
- Throws:
java.security.SignatureException
-
engineUpdate
protected void engineUpdate(byte[] b, int off, int len) throws java.security.SignatureException
- Specified by:
engineUpdate
in classjava.security.SignatureSpi
- Throws:
java.security.SignatureException
-
engineSign
protected byte[] engineSign() throws java.security.SignatureException
- Specified by:
engineSign
in classjava.security.SignatureSpi
- Throws:
java.security.SignatureException
-
engineVerify
protected boolean engineVerify(byte[] sigBytes) throws java.security.SignatureException
- Specified by:
engineVerify
in classjava.security.SignatureSpi
- Throws:
java.security.SignatureException
-
engineSetParameter
protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec params) throws java.security.InvalidAlgorithmParameterException
- Overrides:
engineSetParameter
in classjava.security.SignatureSpi
- Throws:
java.security.InvalidAlgorithmParameterException
-
engineGetParameters
protected java.security.AlgorithmParameters engineGetParameters()
- Overrides:
engineGetParameters
in classjava.security.SignatureSpi
-
engineSetParameter
protected void engineSetParameter(java.lang.String param, java.lang.Object value)
Deprecated.- Specified by:
engineSetParameter
in classjava.security.SignatureSpi
-
engineGetParameter
protected java.lang.Object engineGetParameter(java.lang.String param)
- Specified by:
engineGetParameter
in classjava.security.SignatureSpi
-
-