Class DefaultTlsAcceptor
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
Inheritance
System.Object
DefaultTlsAcceptor
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 DefaultTlsAcceptor : ITlsAcceptor
Constructors
DefaultTlsAcceptor(X509Certificate)
Declaration
public DefaultTlsAcceptor(X509Certificate certificate)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.X509Certificates.X509Certificate | certificate |
DefaultTlsAcceptor(String)
Declaration
public DefaultTlsAcceptor(string certificateName)
Parameters
Type | Name | Description |
---|---|---|
System.String | certificateName |
DefaultTlsAcceptor(String, String)
Declaration
public DefaultTlsAcceptor(string certificateFilename, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | certificateFilename | |
System.String | password |
Properties
Certificate
The certificate to use for authenticated connections
Declaration
public X509Certificate Certificate { get; set; }
Property Value
Type | Description |
---|---|
System.Security.Cryptography.X509Certificates.X509Certificate |
CertificateValidationCallback
The callback that will be invoked after validating the certificate of an incoming client connection
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 |
Protocols
The protocols that should be supported
Declaration
public SslProtocols Protocols { get; set; }
Property Value
Type | Description |
---|---|
System.Security.Authentication.SslProtocols |
RequireMutualAuthentication
Whether or not to require mutual TLS authentication, i.e. the client must present a valid certificate as well
Declaration
public bool RequireMutualAuthentication { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
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
AcceptTls(Stream, String, Int32)
Declaration
public Stream AcceptTls(Stream encryptedStream, string remoteAddress, int localPort)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | encryptedStream | |
System.String | remoteAddress | |
System.Int32 | localPort |
Returns
Type | Description |
---|---|
System.IO.Stream |