Bouncy Castle Cryptography Library 1.49

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 certificate
           
protected  TlsContext context
           
protected  AsymmetricKeyParameter privateKey
           
protected  TlsSigner signer
           
 
Constructor Summary
DefaultTlsSignerCredentials(TlsContext context, Certificate certificate, AsymmetricKeyParameter privateKey)
           
 
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 TlsContext context

certificate

protected Certificate certificate

privateKey

protected AsymmetricKeyParameter privateKey

signer

protected TlsSigner signer
Constructor Detail

DefaultTlsSignerCredentials

public DefaultTlsSignerCredentials(TlsContext context,
                                   Certificate certificate,
                                   AsymmetricKeyParameter privateKey)
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.49