Package org.bouncycastle.crypto.tls
Class DefaultTlsAgreementCredentials
- java.lang.Object
-
- org.bouncycastle.crypto.tls.AbstractTlsCredentials
-
- org.bouncycastle.crypto.tls.AbstractTlsAgreementCredentials
-
- org.bouncycastle.crypto.tls.DefaultTlsAgreementCredentials
-
- All Implemented Interfaces:
TlsAgreementCredentials
,TlsCredentials
public class DefaultTlsAgreementCredentials extends AbstractTlsAgreementCredentials
-
-
Field Summary
Fields Modifier and Type Field Description protected BasicAgreement
basicAgreement
protected Certificate
certificate
protected AsymmetricKeyParameter
privateKey
protected boolean
truncateAgreement
-
Constructor Summary
Constructors Constructor Description DefaultTlsAgreementCredentials(Certificate certificate, AsymmetricKeyParameter privateKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
generateAgreement(AsymmetricKeyParameter peerPublicKey)
Certificate
getCertificate()
-
-
-
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()
-
generateAgreement
public byte[] generateAgreement(AsymmetricKeyParameter peerPublicKey)
-
-