Class BcDefaultTlsCredentialedAgreement
public class BcDefaultTlsCredentialedAgreement : TlsCredentialedAgreement, TlsCredentials
- Inheritance
-
BcDefaultTlsCredentialedAgreement
- Implements
- Inherited Members
Constructors
BcDefaultTlsCredentialedAgreement(BcTlsCrypto, Certificate, AsymmetricKeyParameter)
public BcDefaultTlsCredentialedAgreement(BcTlsCrypto crypto, Certificate certificate, AsymmetricKeyParameter privateKey)
Parameters
cryptoBcTlsCryptocertificateCertificateprivateKeyAsymmetricKeyParameter
Fields
m_agreementCredentials
protected readonly TlsCredentialedAgreement m_agreementCredentials
Field Value
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
peerCertificateTlsCertificatepublic key certificate of our TLS peer.
Returns
- TlsSecret
the agreed secret.
Exceptions
- IOException
in case of an exception on generation of the secret.