org.bouncycastle.crypto.tls
Class DefaultTlsAgreementCredentials
java.lang.Object
org.bouncycastle.crypto.tls.DefaultTlsAgreementCredentials
- All Implemented Interfaces:
- TlsAgreementCredentials, TlsCredentials
public class DefaultTlsAgreementCredentials
- extends java.lang.Object
- implements TlsAgreementCredentials
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
certificate
protected Certificate certificate
privateKey
protected AsymmetricKeyParameter privateKey
basicAgreement
protected BasicAgreement basicAgreement
truncateAgreement
protected boolean truncateAgreement
DefaultTlsAgreementCredentials
public DefaultTlsAgreementCredentials(Certificate certificate,
AsymmetricKeyParameter privateKey)
getCertificate
public Certificate getCertificate()
- Specified by:
getCertificate
in interface TlsCredentials
generateAgreement
public byte[] generateAgreement(AsymmetricKeyParameter peerPublicKey)
- Specified by:
generateAgreement
in interface TlsAgreementCredentials