public class BcTlsRSASigner extends BcTlsSigner
crypto, privateKey
Constructor and Description |
---|
BcTlsRSASigner(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.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
generateRawSignature(SignatureAndHashAlgorithm algorithm,
byte[] hash)
Generate an encoded signature based on the passed in hash.
|
getStreamSigner
public BcTlsRSASigner(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters privateKey, org.bouncycastle.crypto.params.RSAKeyParameters publicKey)
public BcTlsRSASigner(BcTlsCrypto crypto, org.bouncycastle.crypto.params.RSAKeyParameters privateKey)
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws java.io.IOException
TlsSigner
generateRawSignature
in interface TlsSigner
generateRawSignature
in class BcTlsSigner
algorithm
- the signature algorithm to use.hash
- the hash calculated for the signature.java.io.IOException
- in case of an exception processing the hash.