Bouncy Castle Cryptography Library 1.47

org.bouncycastle.crypto.tls
Class DefaultTlsSignerCredentials

java.lang.Object
  extended by org.bouncycastle.crypto.tls.DefaultTlsSignerCredentials
All Implemented Interfaces:
TlsCredentials, TlsSignerCredentials

public class DefaultTlsSignerCredentials
extends java.lang.Object
implements TlsSignerCredentials


Field Summary
protected  Certificate clientCert
           
protected  AsymmetricKeyParameter clientPrivateKey
           
protected  org.bouncycastle.crypto.tls.TlsSigner clientSigner
           
protected  TlsClientContext context
           
 
Constructor Summary
DefaultTlsSignerCredentials(TlsClientContext context, Certificate clientCertificate, AsymmetricKeyParameter clientPrivateKey)
           
 
Method Summary
 byte[] generateCertificateSignature(byte[] md5andsha1)
           
 Certificate getCertificate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected TlsClientContext context

clientCert

protected Certificate clientCert

clientPrivateKey

protected AsymmetricKeyParameter clientPrivateKey

clientSigner

protected org.bouncycastle.crypto.tls.TlsSigner clientSigner
Constructor Detail

DefaultTlsSignerCredentials

public DefaultTlsSignerCredentials(TlsClientContext context,
                                   Certificate clientCertificate,
                                   AsymmetricKeyParameter clientPrivateKey)
Method Detail

getCertificate

public Certificate getCertificate()
Specified by:
getCertificate in interface TlsCredentials

generateCertificateSignature

public byte[] generateCertificateSignature(byte[] md5andsha1)
                                    throws java.io.IOException
Specified by:
generateCertificateSignature in interface TlsSignerCredentials
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.47