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
Properties
Certificate
The certificate to use for authenticated connections
public X509Certificate Certificate { get; set; }
Property Value
CertificateValidationCallback
The callback that will be invoked after validating the certificate of an incoming client connection
public RemoteCertificateValidationCallback CertificateValidationCallback { get; set; }
Property Value
CheckCertificateRevocation
Whether or not the certificate revocation list should be checked during authentication
public bool CheckCertificateRevocation { get; set; }
Property Value
Protocols
The protocols that should be supported
public SslProtocols Protocols { get; set; }
Property Value
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
SslHandshakeTimeout
The timeout after which TLS authentication will be considered to have failed
public TimeSpan SslHandshakeTimeout { get; set; }
Property Value
Methods
AcceptTls(Stream, string, int)
Accepts an incomming Tls connection
public Stream AcceptTls(Stream encryptedStream, string remoteAddress, int localPort)
Parameters
encryptedStream
StreamThe encrypted stream over which unencrypted data will be sent and received
remoteAddress
stringRemote IP address or hostname
localPort
intThe local port to which the remote entity has connected