public class DefaultTlsAgreementCredentials extends AbstractTlsAgreementCredentials
Modifier and Type | Field and Description |
---|---|
protected BasicAgreement |
basicAgreement |
protected Certificate |
certificate |
protected AsymmetricKeyParameter |
privateKey |
protected boolean |
truncateAgreement |
Constructor and Description |
---|
DefaultTlsAgreementCredentials(Certificate certificate,
AsymmetricKeyParameter privateKey) |
Modifier and Type | Method and Description |
---|---|
byte[] |
generateAgreement(AsymmetricKeyParameter peerPublicKey) |
Certificate |
getCertificate() |
protected Certificate certificate
protected AsymmetricKeyParameter privateKey
protected BasicAgreement basicAgreement
protected boolean truncateAgreement
public DefaultTlsAgreementCredentials(Certificate certificate, AsymmetricKeyParameter privateKey)
public Certificate getCertificate()
public byte[] generateAgreement(AsymmetricKeyParameter peerPublicKey)