LAUREL BRIDGE

TlsConnection Class

DICOM Connectivity Framework V3.4
This class encapsulates the functionality of connecting/validating a TLS connection.
Inheritance Hierarchy

SystemObject
  LaurelBridge.DCFExamples.TLSTlsConnection

Namespace:  LaurelBridge.DCFExamples.TLS
Assemblies:   EchoSCU (in EchoSCU.exe) Version: DCF34 r12431 DCF_3_4_38_20200923 NetFramework
  VerificationSCPExtended (in VerificationSCPExtended.exe) Version: DCF34 r12431 DCF_3_4_38_20200923 NetFramework
Syntax

C#
public class TlsConnection

The TlsConnection type exposes the following members.

Constructors

  NameDescription
Public methodTlsConnection
Constructs a TLS connection object (but does not initiate authentication).
Top
Properties

  NameDescription
Public propertyAcceptedTlsProtocol
Gets the accepted TLS protocol.
Public propertyAllowMissingClientCertificates
Gets whether missing client certificates are allowed.
Public propertyAllowSelfSignedCertificates
Gets whether self-signed certificates are allowed.
Public propertyAllowWildcardAndSanCertificates
Gets whether wildcard and subject alternative name certificates are allowed.
Public propertyAuthenticationStartTime
Gets the TLS authentication start time.
Public propertyAuthenticationTimeoutMs
Gets/sets the TLS authentication timeout.
Public propertyCertificate
Gets the X509 certificate.
Public propertyCheckCertificateRevocation
Gets whether the certificate revocation list should be checked.
Public propertyIgnoreCertificateNameMismatch
Gets whether certificate name mismatches should be ignored.
Public propertyReadTimeoutMs
Gets/sets the TLS stream read timeout.
Public propertyRemoteHostName
Gets the remote hostname.
Public propertySupportedTlsProtocols
Gets the supported TLS protocols.
Public propertyTlsStream
Gets the underlying SslStream object.
Public propertyWriteTimeoutMs
Gets/sets the TLS stream write timeout.
Top
Methods

  NameDescription
Protected methodClientRemoteCertificateValidationCallback
This is the client-side certificate validation callback.
Public methodClose
Closes the TLS stream (pass-through).
Public methodConnectAsClient
Initiates authentication of the TLS connection as a client.
Public methodConnectAsServer
Initiates authentication of the TLS connection as a server. Authentication exception thrown for null certificatesPropagate exceptions thrown from TlsStream
Public methodGetAuthenticationInformation
Formats information about the state of the underlying SslStream. This method is based on example code from the MSDN documentation of SslStream.
Public methodStatic memberGetCertificateInformation
Formats information about the given X509 certificate.
Public methodGetConfigurationInformation
Formats information about the configuration of the TLS connection.
Public methodGetSecurityState
Formats information about the security state of the TLS connection.
Public methodIsSecure
Checks whether the TLS connection is encrypted, authenticated, and signed.
Public methodRead
Reads from the TLS stream (pass-through).
Protected methodServerRemoteCertificateValidationCallback
This is the server-side certificate validation callback.
Public methodWrite(Byte)
Writes to the TLS stream (pass-through).
Public methodWrite(Byte, Int32, Int32)
Writes to the TLS stream (pass-through).
Top
Fields

  NameDescription
Public fieldStatic memberENHANCED_KEY_USAGE_EXTENSION_OID
Extended Key Usage
Public fieldStatic memberKEY_USAGE_EXTENSION_OID
Key Usage
Public fieldStatic memberSUBJECT_ALTERNATIVE_NAME_EXTENSION_OID
Subject Alternative Name
Top
See Also

Reference