Class JcaTlsRSASigner
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.jcajce.JcaTlsRSASigner
-
-
Constructor Summary
Constructors Constructor Description JcaTlsRSASigner(JcaTlsCrypto crypto, java.security.PrivateKey privateKey, java.security.PublicKey publicKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash)
Generate an encoded signature based on the passed in hash.protected java.security.Signature
getRawSigner()
TlsStreamSigner
getStreamSigner(SignatureAndHashAlgorithm algorithm)
protected boolean
isSunMSCAPIRawSigner()
-
-
-
Constructor Detail
-
JcaTlsRSASigner
public JcaTlsRSASigner(JcaTlsCrypto crypto, java.security.PrivateKey privateKey, java.security.PublicKey publicKey)
-
-
Method Detail
-
generateRawSignature
public byte[] generateRawSignature(SignatureAndHashAlgorithm algorithm, byte[] hash) throws java.io.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:
java.io.IOException
- in case of an exception processing the hash.
-
getStreamSigner
public TlsStreamSigner getStreamSigner(SignatureAndHashAlgorithm algorithm) throws java.io.IOException
- Specified by:
getStreamSigner
in interfaceTlsSigner
- Throws:
java.io.IOException
-
getRawSigner
protected java.security.Signature getRawSigner() throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
isSunMSCAPIRawSigner
protected boolean isSunMSCAPIRawSigner() throws java.io.IOException
- Throws:
java.io.IOException
-
-