Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class TlsRSASigner

java.lang.Object
  extended by org.bouncycastle.crypto.tls.AbstractTlsSigner
      extended by org.bouncycastle.crypto.tls.TlsRSASigner
All Implemented Interfaces:
TlsSigner

public class TlsRSASigner
extends AbstractTlsSigner


Field Summary
 
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsSigner
context
 
Constructor Summary
TlsRSASigner()
           
 
Method Summary
protected  AsymmetricBlockCipher createRSAImpl()
           
 Signer createSigner(AsymmetricKeyParameter privateKey)
           
 Signer createVerifyer(AsymmetricKeyParameter publicKey)
           
 byte[] generateRawSignature(AsymmetricKeyParameter privateKey, byte[] md5AndSha1)
           
 boolean isValidPublicKey(AsymmetricKeyParameter publicKey)
           
protected  Signer makeSigner(Digest d, boolean forSigning, CipherParameters cp)
           
 boolean verifyRawSignature(byte[] sigBytes, AsymmetricKeyParameter publicKey, byte[] md5AndSha1)
           
 
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsSigner
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TlsRSASigner

public TlsRSASigner()
Method Detail

generateRawSignature

public byte[] generateRawSignature(AsymmetricKeyParameter privateKey,
                                   byte[] md5AndSha1)
                            throws CryptoException
Throws:
CryptoException

verifyRawSignature

public boolean verifyRawSignature(byte[] sigBytes,
                                  AsymmetricKeyParameter publicKey,
                                  byte[] md5AndSha1)
                           throws CryptoException
Throws:
CryptoException

createSigner

public Signer createSigner(AsymmetricKeyParameter privateKey)

createVerifyer

public Signer createVerifyer(AsymmetricKeyParameter publicKey)

isValidPublicKey

public boolean isValidPublicKey(AsymmetricKeyParameter publicKey)

makeSigner

protected Signer makeSigner(Digest d,
                            boolean forSigning,
                            CipherParameters cp)

createRSAImpl

protected AsymmetricBlockCipher createRSAImpl()

Bouncy Castle Cryptography Library 1.49