Table of Contents

Class BcDefaultTlsCredentialedAgreement

Namespace
Org.BouncyCastle.Tls.Crypto.Impl.BC
Assembly
BouncyCastle.Cryptography.dll
public class BcDefaultTlsCredentialedAgreement : TlsCredentialedAgreement, TlsCredentials
Inheritance
BcDefaultTlsCredentialedAgreement
Implements
Inherited Members

Constructors

BcDefaultTlsCredentialedAgreement(BcTlsCrypto, Certificate, AsymmetricKeyParameter)

public BcDefaultTlsCredentialedAgreement(BcTlsCrypto crypto, Certificate certificate, AsymmetricKeyParameter privateKey)

Parameters

crypto BcTlsCrypto
certificate Certificate
privateKey AsymmetricKeyParameter

Fields

m_agreementCredentials

protected readonly TlsCredentialedAgreement m_agreementCredentials

Field Value

TlsCredentialedAgreement

Properties

Certificate

Return the certificate structure representing our identity.

public virtual Certificate Certificate { get; }

Property Value

Certificate

our certificate structure.

Methods

GenerateAgreement(TlsCertificate)

Calculate an agreed secret based on our credentials and the public key credentials of our peer.

public virtual TlsSecret GenerateAgreement(TlsCertificate peerCertificate)

Parameters

peerCertificate TlsCertificate

public key certificate of our TLS peer.

Returns

TlsSecret

the agreed secret.

Exceptions

IOException

in case of an exception on generation of the secret.