Class DefaultTlsInitiator
- Namespace
- FellowOakDicom.Network.Tls
- Assembly
- fo-dicom.core.dll
Default implementation of ITlsInitiator. This implementation will use windows certificate store in order to validate the server certificate
public class DefaultTlsInitiator : ITlsInitiator
- Inheritance
-
DefaultTlsInitiator
- Implements
- Inherited Members
- Extension Methods
Constructors
DefaultTlsInitiator()
public DefaultTlsInitiator()
Properties
CertificateValidationCallback
The callback that will be invoked after validating the certificate of the server
public RemoteCertificateValidationCallback CertificateValidationCallback { get; set; }
Property Value
Certificates
The certificates that will be used to authenticate the client itself
public X509CertificateCollection Certificates { get; set; }
Property Value
CheckCertificateRevocation
Whether or not the certificate revocation list should be checked during authentication
public bool CheckCertificateRevocation { get; set; }
Property Value
IgnoreSslPolicyErrors
Whether or not to ignore any certificate validation errors that occur when authenticating as a client over SSL
public bool IgnoreSslPolicyErrors { get; set; }
Property Value
Protocols
The protocols that should be supported
public SslProtocols Protocols { 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
InitiateTls(Stream, string, int)
Initiate a tls connection
public Stream InitiateTls(Stream plainStream, string remoteAddress, int remotePort)
Parameters
plainStreamStreamThe cleartext stream over which unencrypted data will be sent and received
remoteAddressstringRemote IP address or hostname
remotePortintRemote port