This class encapsulates the functionality of connecting/validating a TLS connection.
Inheritance Hierarchy
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
Name | Description | |
---|---|---|
![]() | TlsConnection |
Constructs a TLS connection object (but does not initiate authentication).
|
Properties
Name | Description | |
---|---|---|
![]() | AcceptedTlsProtocol |
Gets the accepted TLS protocol.
|
![]() | AllowMissingClientCertificates |
Gets whether missing client certificates are allowed.
|
![]() | AllowSelfSignedCertificates |
Gets whether self-signed certificates are allowed.
|
![]() | AllowWildcardAndSanCertificates |
Gets whether wildcard and subject alternative name certificates are allowed.
|
![]() | AuthenticationStartTime |
Gets the TLS authentication start time.
|
![]() | AuthenticationTimeoutMs |
Gets/sets the TLS authentication timeout.
|
![]() | Certificate |
Gets the X509 certificate.
|
![]() | CheckCertificateRevocation |
Gets whether the certificate revocation list should be checked.
|
![]() | IgnoreCertificateNameMismatch |
Gets whether certificate name mismatches should be ignored.
|
![]() | ReadTimeoutMs |
Gets/sets the TLS stream read timeout.
|
![]() | RemoteHostName |
Gets the remote hostname.
|
![]() | SupportedTlsProtocols |
Gets the supported TLS protocols.
|
![]() | TlsStream |
Gets the underlying SslStream object.
|
![]() | WriteTimeoutMs |
Gets/sets the TLS stream write timeout.
|
Methods
Name | Description | |
---|---|---|
![]() | ClientRemoteCertificateValidationCallback |
This is the client-side certificate validation callback.
|
![]() | Close |
Closes the TLS stream (pass-through).
|
![]() | ConnectAsClient |
Initiates authentication of the TLS connection as a client.
|
![]() | ConnectAsServer |
Initiates authentication of the TLS connection as a server.
Authentication exception thrown for null certificatesPropagate exceptions thrown from TlsStream |
![]() | GetAuthenticationInformation |
Formats information about the state of the underlying SslStream. This method is based on example code from the MSDN documentation of SslStream.
|
![]() ![]() | GetCertificateInformation |
Formats information about the given X509 certificate.
|
![]() | GetConfigurationInformation |
Formats information about the configuration of the TLS connection.
|
![]() | GetSecurityState |
Formats information about the security state of the TLS connection.
|
![]() | IsSecure |
Checks whether the TLS connection is encrypted, authenticated, and signed.
|
![]() | Read |
Reads from the TLS stream (pass-through).
|
![]() | ServerRemoteCertificateValidationCallback |
This is the server-side certificate validation callback.
|
![]() | Write(Byte) |
Writes to the TLS stream (pass-through).
|
![]() | Write(Byte, Int32, Int32) |
Writes to the TLS stream (pass-through).
|
Fields
Name | Description | |
---|---|---|
![]() ![]() | ENHANCED_KEY_USAGE_EXTENSION_OID |
Extended Key Usage
|
![]() ![]() | KEY_USAGE_EXTENSION_OID |
Key Usage
|
![]() ![]() | SUBJECT_ALTERNATIVE_NAME_EXTENSION_OID |
Subject Alternative Name
|
See Also