Table of Contents

Class DefaultTlsAcceptor

Namespace
FellowOakDicom.Network.Tls
Assembly
fo-dicom.core.dll

Default implementation of ITlsAcceptor This class requires an X509Certificate that can be passed as name of an certificate that is stored in windows certificate storage or as a certificate file

public class DefaultTlsAcceptor : ITlsAcceptor
Inheritance
DefaultTlsAcceptor
Implements
Inherited Members
Extension Methods

Constructors

DefaultTlsAcceptor(X509Certificate)

public DefaultTlsAcceptor(X509Certificate certificate)

Parameters

certificate X509Certificate

DefaultTlsAcceptor(string)

public DefaultTlsAcceptor(string certificateName)

Parameters

certificateName string

DefaultTlsAcceptor(string, string)

public DefaultTlsAcceptor(string certificateFilename, string password)

Parameters

certificateFilename string
password string

Properties

Certificate

The certificate to use for authenticated connections

public X509Certificate Certificate { get; set; }

Property Value

X509Certificate

CertificateValidationCallback

The callback that will be invoked after validating the certificate of an incoming client connection

public RemoteCertificateValidationCallback CertificateValidationCallback { get; set; }

Property Value

RemoteCertificateValidationCallback

CheckCertificateRevocation

Whether or not the certificate revocation list should be checked during authentication

public bool CheckCertificateRevocation { get; set; }

Property Value

bool

Protocols

The protocols that should be supported

public SslProtocols Protocols { get; set; }

Property Value

SslProtocols

RequireMutualAuthentication

Whether or not to require mutual TLS authentication, i.e. the client must present a valid certificate as well

public bool RequireMutualAuthentication { get; set; }

Property Value

bool

SslHandshakeTimeout

The timeout after which TLS authentication will be considered to have failed

public TimeSpan SslHandshakeTimeout { get; set; }

Property Value

TimeSpan

Methods

AcceptTls(Stream, string, int)

Accepts an incomming Tls connection

public Stream AcceptTls(Stream encryptedStream, string remoteAddress, int localPort)

Parameters

encryptedStream Stream

The encrypted stream over which unencrypted data will be sent and received

remoteAddress string

Remote IP address or hostname

localPort int

The local port to which the remote entity has connected

Returns

Stream