Class DefaultTlsInitiator
Default implementation of ITlsInitiator. This implementation will use windows certificate store in order to validate the server certificate
Inheritance
System.Object
DefaultTlsInitiator
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FellowOakDicom.Network.Tls
Assembly: fo-dicom.core.dll
Syntax
public class DefaultTlsInitiator : ITlsInitiator
Constructors
DefaultTlsInitiator()
Declaration
public DefaultTlsInitiator()
Properties
Certificates
The certificates that will be used to authenticate the client itself
Declaration
public X509CertificateCollection Certificates { get; set; }
Property Value
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509CertificateCollection |
CertificateValidationCallback
The callback that will be invoked after validating the certificate of the server
Declaration
public RemoteCertificateValidationCallback CertificateValidationCallback { get; set; }
Property Value
Type | Description |
---|---|
System.Net.Security.RemoteCertificateValidationCallback |
CheckCertificateRevocation
Whether or not the certificate revocation list should be checked during authentication
Declaration
public bool CheckCertificateRevocation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IgnoreSslPolicyErrors
Whether or not to ignore any certificate validation errors that occur when authenticating as a client over SSL
Declaration
public bool IgnoreSslPolicyErrors { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Protocols
The protocols that should be supported
Declaration
public SslProtocols Protocols { get; set; }
Property Value
Type | Description |
---|---|
System.Security.Authentication.SslProtocols |
SslHandshakeTimeout
The timeout after which TLS authentication will be considered to have failed
Declaration
public TimeSpan SslHandshakeTimeout { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Methods
InitiateTls(Stream, String, Int32)
Declaration
public Stream InitiateTls(Stream plainStream, string remoteAddress, int remotePort)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | plainStream | |
System.String | remoteAddress | |
System.Int32 | remotePort |
Returns
Type | Description |
---|---|
System.IO.Stream |