Bouncy Castle Cryptography Library 1.49

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 certificate
           
protected  AsymmetricKeyParameter privateKey
           
protected  boolean truncateAgreement
           
 
Constructor Summary
DefaultTlsAgreementCredentials(Certificate certificate, AsymmetricKeyParameter privateKey)
           
 
Method Summary
 byte[] generateAgreement(AsymmetricKeyParameter peerPublicKey)
           
 Certificate getCertificate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

certificate

protected Certificate certificate

privateKey

protected AsymmetricKeyParameter privateKey

basicAgreement

protected BasicAgreement basicAgreement

truncateAgreement

protected boolean truncateAgreement
Constructor Detail

DefaultTlsAgreementCredentials

public DefaultTlsAgreementCredentials(Certificate certificate,
                                      AsymmetricKeyParameter privateKey)
Method Detail

getCertificate

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

generateAgreement

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

Bouncy Castle Cryptography Library 1.49