Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

public Class JcaTlsRSASigner

extends Object
implements TlsSigner
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsSigner
Imports
java.io.IOException, java.security.GeneralSecurityException, .PrivateKey, .PublicKey, .Signature, org.bouncycastle.asn1.DERNull, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .DigestInfo, org.bouncycastle.tls.AlertDescription, .SignatureAlgorithm, .SignatureAndHashAlgorithm, .TlsFatalAlert, .TlsUtils, org.bouncycastle.tls.crypto.TlsSigner, .TlsStreamSigner

Operator supporting the generation of RSASSA-PKCS1-v1_5 signatures.

Field Summary

Modifier and TypeField and Description
private final JcaTlsCrypto
private final PrivateKey
private Signature

Constructor Summary

AccessConstructor and Description
public
JcaTlsRSASigner(JcaTlsCrypto crypto, PrivateKey privateKey, PublicKey publicKey)
Deprecated Use constructor without 'publicKey' parameter.

public

Method Summary

Modifier and TypeMethod and Description
public byte[]
generateRawSignature(SignatureAndHashAlgorithm
the signature algorithm to use.
algorithm
,
byte[]
the hash calculated for the signature.
hash
)

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

protected Signature
public TlsStreamSigner
protected boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cryptoback to summary
private final JcaTlsCrypto crypto
privateKeyback to summary
private final PrivateKey privateKey
rawSignerback to summary
private Signature rawSigner

Constructor Detail

JcaTlsRSASignerback to summary
public JcaTlsRSASigner(JcaTlsCrypto crypto, PrivateKey privateKey, PublicKey publicKey)

Deprecated

Use constructor without 'publicKey' parameter.

JcaTlsRSASignerback to summary
public JcaTlsRSASigner(JcaTlsCrypto crypto, PrivateKey privateKey)

Method Detail

generateRawSignatureback to summary
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Doc from org.bouncycastle.tls.crypto.TlsSigner.generateRawSignature.

Generate an encoded signature based on the passed in hash.

Parameters
algorithm:SignatureAndHashAlgorithm

the signature algorithm to use.

hash:byte[]

the hash calculated for the signature.

Returns:byte[]

an encoded signature.

Exceptions
IOException:
in case of an exception processing the hash.
getRawSignerback to summary
protected Signature getRawSigner() throws GeneralSecurityException
getStreamSignerback to summary
public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws IOException

Implements org.bouncycastle.tls.crypto.TlsSigner.getStreamSigner.

isSunMSCAPIRawSignerback to summary
protected boolean isSunMSCAPIRawSigner() throws IOException