Class ServerOnlyTlsAuthentication
- Namespace
- Org.BouncyCastle.Tls
- Assembly
- BouncyCastle.Cryptography.dll
public abstract class ServerOnlyTlsAuthentication : TlsAuthentication
- Inheritance
-
ServerOnlyTlsAuthentication
- Implements
- Inherited Members
Methods
GetClientCredentials(CertificateRequest)
Return client credentials in response to server's certificate request.
public TlsCredentials GetClientCredentials(CertificateRequest certificateRequest)
Parameters
certificateRequestCertificateRequestdetails 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
NotifyServerCertificate(TlsServerCertificate)
Called by the protocol handler to report the server certificate.
public abstract void NotifyServerCertificate(TlsServerCertificate serverCertificate)
Parameters
serverCertificateTlsServerCertificatethe server certificate received.
Remarks
Note: this method is responsible for certificate verification and validation.