Class JcaTlsRSASigner
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSASigner
- All Implemented Interfaces:
TlsSigner
Operator supporting the generation of RSASSA-PKCS1-v1_5 signatures.
-
Constructor Summary
ConstructorsConstructorDescriptionJcaTlsRSASigner
(JcaTlsCrypto crypto, PrivateKey privateKey) JcaTlsRSASigner
(JcaTlsCrypto crypto, PrivateKey privateKey, PublicKey publicKey) Deprecated.Use constructor without 'publicKey' parameter. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generateRawSignature
(SignatureAndHashAlgorithm algorithm, byte[] hash) Generate an encoded signature based on the passed in hash.protected Signature
getStreamSigner
(SignatureAndHashAlgorithm algorithm) protected boolean
-
Constructor Details
-
JcaTlsRSASigner
Deprecated.Use constructor without 'publicKey' parameter. -
JcaTlsRSASigner
-
-
Method Details
-
generateRawSignature
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException Description copied from interface:TlsSigner
Generate an encoded signature based on the passed in hash.- Specified by:
generateRawSignature
in interfaceTlsSigner
- Parameters:
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.- Returns:
- an encoded signature.
- Throws:
IOException
- in case of an exception processing the hash.
-
getStreamSigner
- Specified by:
getStreamSigner
in interfaceTlsSigner
- Throws:
IOException
-
getRawSigner
- Throws:
GeneralSecurityException
-
isSunMSCAPIRawSigner
- Throws:
IOException
-