TlsAgreementCredentials
, TlsCredentials
public class DefaultTlsAgreementCredentials extends AbstractTlsAgreementCredentials
Modifier and Type | Field | Description |
---|---|---|
protected BasicAgreement |
basicAgreement |
|
protected Certificate |
certificate |
|
protected AsymmetricKeyParameter |
privateKey |
|
protected boolean |
truncateAgreement |
Constructor | Description |
---|---|
DefaultTlsAgreementCredentials(Certificate certificate,
AsymmetricKeyParameter privateKey) |
Modifier and Type | Method | 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)