<PackageReference Include="BouncyCastle.Cryptography" Version="2.2.1" />

TlsServer

public interface TlsServer : TlsPeer
Interface describing a TLS server endpoint.

Return server credentials to use.

Return the TlsPskExternalexternal PSK to select from the ClientHello.

byte[] GetNewSessionID()

RFC 5077 3.3. NewSessionTicket Handshake Message.

void GetServerExtensionsForConnection(IDictionary<int, byte[]> serverExtensions)

TlsSession GetSessionToResume(byte[] sessionID)

Return the specified session, if available.

void Init(TlsServerContext context)

void NotifyClientCertificate(Certificate clientCertificate)

Called by the protocol handler to report the client certificate, only if GetCertificateRequest returned non-null.

void NotifyFallback(bool isFallback)

void NotifyOfferedCipherSuites(int[] offeredCipherSuites)

void NotifySession(TlsSession session)

void ProcessClientExtensions(IDictionary<int, byte[]> clientExtensions)