Bouncy Castle Cryptography 1.46

org.bouncycastle.crypto.tls
Class DefaultTlsAgreementCredentials

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

public class DefaultTlsAgreementCredentials
extends java.lang.Object
implements TlsAgreementCredentials


Field Summary
protected  BasicAgreement basicAgreement
           
protected  Certificate clientCert
           
protected  AsymmetricKeyParameter clientPrivateKey
           
 
Constructor Summary
DefaultTlsAgreementCredentials(Certificate clientCertificate, AsymmetricKeyParameter clientPrivateKey)
           
 
Method Summary
 byte[] generateAgreement(AsymmetricKeyParameter serverPublicKey)
           
 Certificate getCertificate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientCert

protected Certificate clientCert

clientPrivateKey

protected AsymmetricKeyParameter clientPrivateKey

basicAgreement

protected BasicAgreement basicAgreement
Constructor Detail

DefaultTlsAgreementCredentials

public DefaultTlsAgreementCredentials(Certificate clientCertificate,
                                      AsymmetricKeyParameter clientPrivateKey)
Method Detail

getCertificate

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

generateAgreement

public byte[] generateAgreement(AsymmetricKeyParameter serverPublicKey)
Specified by:
generateAgreement in interface TlsAgreementCredentials

Bouncy Castle Cryptography 1.46