Table of Contents

Interface TlsAuthentication

Namespace
Org.BouncyCastle.Tls
Assembly
BouncyCastle.Cryptography.dll

Base interface to provide TLS authentication credentials.

public interface TlsAuthentication

Methods

GetClientCredentials(CertificateRequest)

Return client credentials in response to server's certificate request.

TlsCredentials GetClientCredentials(CertificateRequest certificateRequest)

Parameters

certificateRequest CertificateRequest

details of the certificate request.

Returns

TlsCredentials

a TlsCredentials object or null for no client authentication.

Remarks

The returned value may be null, or else it MUST implement exactly one of TlsCredentialedAgreement, TlsCredentialedDecryptor, or TlsCredentialedSigner, depending on the key exchange that was negotiated and the details of the CertificateRequest.

Exceptions

IOException

NotifyServerCertificate(TlsServerCertificate)

Called by the protocol handler to report the server certificate.

void NotifyServerCertificate(TlsServerCertificate serverCertificate)

Parameters

serverCertificate TlsServerCertificate

the server certificate received.

Remarks

Note: this method is responsible for certificate verification and validation.

Exceptions

IOException