Class BcTlsRSASigner
java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner
org.bouncycastle.tls.crypto.impl.bc.BcTlsRSASigner
- All Implemented Interfaces:
TlsSigner
Operator supporting the generation of RSASSA-PKCS1-v1_5 signatures using the BC light-weight API.
-
Field Summary
Fields inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner
crypto, privateKey
-
Constructor Summary
ConstructorDescriptionBcTlsRSASigner
(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters privateKey) BcTlsRSASigner
(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters privateKey, org.bouncycastle.crypto.params.RSAKeyParameters 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.Methods inherited from class org.bouncycastle.tls.crypto.impl.bc.BcTlsSigner
getStreamSigner
-
Constructor Details
-
BcTlsRSASigner
public BcTlsRSASigner(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters privateKey, org.bouncycastle.crypto.params.RSAKeyParameters publicKey) Deprecated.Use constructor without 'publicKey' parameter. -
BcTlsRSASigner
public BcTlsRSASigner(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters privateKey)
-
-
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.- 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.
-