MSDN Library

CertificateServerContext Class

Namespace: System.Net.Security

Declaration: public abstract class CertificateServerContext

The CertificateServerContext class represents the context of a server certificate used during SSL/TLS authentication. It provides access to the certificate properties and related information, enabling fine-grained control over the server's identity verification process.

Tip: This is an abstract base class. Concrete implementations, such as those provided by specific security protocols or frameworks, will derive from this class to handle certificate validation and management.

Syntax

public abstract class CertificateServerContext

Remarks

The CertificateServerContext class is central to how a server presents its identity to a client during an SSL/TLS handshake. When a client connects to a server that uses SSL/TLS, the server provides its certificate. The CertificateServerContext abstract class defines the standard interface for accessing and validating this certificate information on the server side.

Developers typically interact with derived classes that provide specific implementations for different network protocols or security libraries. These implementations handle the details of certificate loading, validation against trust stores, and the secure exchange of cryptographic information.

Methods

As an abstract class, CertificateServerContext does not implement any public methods directly. Its derived classes are expected to provide implementations for methods that manage the server certificate lifecycle and validation.

Properties

The abstract nature of CertificateServerContext means it defines abstract properties that derived classes must implement. These properties typically expose information about the server certificate.

Name Description
Certificate Gets the server's X.509 certificate. This abstract property must be implemented by derived classes.
TrustAnchor Gets the trust anchor used to validate the server certificate. This may be null if no explicit trust anchor is configured.
ValidationStatus Gets the status of the server certificate validation.

Inheritance Hierarchy

Object

Requirements

Assembly File
System.Net.Security.dll System.Net.Security.dll

See Also