Class TlsConnection
- Namespace
- Gio
- Assembly
- Gio-2.0.dll
public class TlsConnection : IOStream, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
TlsConnection
- Implements
- Inherited Members
Constructors
TlsConnection(bool, params ConstructArgument[])
protected TlsConnection(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
TlsConnection(IntPtr, bool)
protected TlsConnection(IntPtr ptr, bool ownedRef)
Parameters
Fields
AcceptCertificateSignal
Signal Descriptor for OnAcceptCertificate.
public static readonly ReturningSignal<TlsConnection, TlsConnection.AcceptCertificateSignalArgs, bool> AcceptCertificateSignal
Field Value
AdvertisedProtocolsPropertyDefinition
public static readonly Property<string[], TlsConnection> AdvertisedProtocolsPropertyDefinition
Field Value
BaseIoStreamPropertyDefinition
public static readonly Property<IOStream?, TlsConnection> BaseIoStreamPropertyDefinition
Field Value
CertificatePropertyDefinition
public static readonly Property<TlsCertificate?, TlsConnection> CertificatePropertyDefinition
Field Value
CiphersuiteNamePropertyDefinition
public static readonly Property<string?, TlsConnection> CiphersuiteNamePropertyDefinition
Field Value
DatabasePropertyDefinition
public static readonly Property<TlsDatabase?, TlsConnection> DatabasePropertyDefinition
Field Value
InteractionPropertyDefinition
public static readonly Property<TlsInteraction?, TlsConnection> InteractionPropertyDefinition
Field Value
NegotiatedProtocolPropertyDefinition
public static readonly Property<string?, TlsConnection> NegotiatedProtocolPropertyDefinition
Field Value
PeerCertificateErrorsPropertyDefinition
public static readonly Property<TlsCertificateFlags, TlsConnection> PeerCertificateErrorsPropertyDefinition
Field Value
PeerCertificatePropertyDefinition
public static readonly Property<TlsCertificate?, TlsConnection> PeerCertificatePropertyDefinition
Field Value
ProtocolVersionPropertyDefinition
public static readonly Property<TlsProtocolVersion, TlsConnection> ProtocolVersionPropertyDefinition
Field Value
RehandshakeModePropertyDefinition
public static readonly Property<TlsRehandshakeMode, TlsConnection> RehandshakeModePropertyDefinition
Field Value
RequireCloseNotifyPropertyDefinition
public static readonly Property<bool, TlsConnection> RequireCloseNotifyPropertyDefinition
Field Value
UseSystemCertdbPropertyDefinition
public static readonly Property<bool, TlsConnection> UseSystemCertdbPropertyDefinition
Field Value
Properties
AdvertisedProtocols
public string[] AdvertisedProtocols { get; set; }
Property Value
- string[]
BaseIoStream
public IOStream? BaseIoStream { get; }
Property Value
Certificate
public TlsCertificate? Certificate { get; set; }
Property Value
CiphersuiteName
public string? CiphersuiteName { get; }
Property Value
Database
public TlsDatabase? Database { get; set; }
Property Value
Interaction
public TlsInteraction? Interaction { get; set; }
Property Value
NegotiatedProtocol
public string? NegotiatedProtocol { get; }
Property Value
PeerCertificate
public TlsCertificate? PeerCertificate { get; }
Property Value
PeerCertificateErrors
public TlsCertificateFlags PeerCertificateErrors { get; }
Property Value
ProtocolVersion
public TlsProtocolVersion ProtocolVersion { get; }
Property Value
RehandshakeMode
public TlsRehandshakeMode RehandshakeMode { get; set; }
Property Value
RequireCloseNotify
public bool RequireCloseNotify { get; set; }
Property Value
UseSystemCertdb
public bool UseSystemCertdb { get; set; }
Property Value
Methods
EmitAcceptCertificate(TlsCertificate, TlsCertificateFlags)
[Version("2.28")]
public bool EmitAcceptCertificate(TlsCertificate peerCert, TlsCertificateFlags errors)
Parameters
peerCert
TlsCertificateerrors
TlsCertificateFlags
Returns
GetCertificate()
[Version("2.28")]
public TlsCertificate? GetCertificate()
Returns
GetCiphersuiteName()
[Version("2.70")]
public string? GetCiphersuiteName()
Returns
GetDatabase()
[Version("2.30")]
public TlsDatabase? GetDatabase()
Returns
GetGType()
public static Type GetGType()
Returns
GetInteraction()
[Version("2.30")]
public TlsInteraction? GetInteraction()
Returns
GetNegotiatedProtocol()
[Version("2.60")]
public string? GetNegotiatedProtocol()
Returns
GetPeerCertificate()
[Version("2.28")]
public TlsCertificate? GetPeerCertificate()
Returns
GetPeerCertificateErrors()
[Version("2.28")]
public TlsCertificateFlags GetPeerCertificateErrors()
Returns
GetProtocolVersion()
[Version("2.70")]
public TlsProtocolVersion GetProtocolVersion()
Returns
GetRehandshakeMode()
[Version("2.28")]
public TlsRehandshakeMode GetRehandshakeMode()
Returns
GetRequireCloseNotify()
[Version("2.28")]
public bool GetRequireCloseNotify()
Returns
GetUseSystemCertdb()
public bool GetUseSystemCertdb()
Returns
Handshake(Cancellable?)
[Version("2.28")]
public bool Handshake(Cancellable? cancellable)
Parameters
cancellable
Cancellable
Returns
HandshakeFinish(AsyncResult)
[Version("2.28")]
public bool HandshakeFinish(AsyncResult result)
Parameters
result
AsyncResult
Returns
SetAdvertisedProtocols(string[]?)
[Version("2.60")]
public void SetAdvertisedProtocols(string[]? protocols)
Parameters
protocols
string[]
SetCertificate(TlsCertificate)
[Version("2.28")]
public void SetCertificate(TlsCertificate certificate)
Parameters
certificate
TlsCertificate
SetDatabase(TlsDatabase?)
[Version("2.30")]
public void SetDatabase(TlsDatabase? database)
Parameters
database
TlsDatabase
SetInteraction(TlsInteraction?)
[Version("2.30")]
public void SetInteraction(TlsInteraction? interaction)
Parameters
interaction
TlsInteraction
SetRehandshakeMode(TlsRehandshakeMode)
[Version("2.28")]
public void SetRehandshakeMode(TlsRehandshakeMode mode)
Parameters
mode
TlsRehandshakeMode
SetRequireCloseNotify(bool)
[Version("2.28")]
public void SetRequireCloseNotify(bool requireCloseNotify)
Parameters
requireCloseNotify
bool
SetUseSystemCertdb(bool)
public void SetUseSystemCertdb(bool useSystemCertdb)
Parameters
useSystemCertdb
bool
Events
OnAcceptCertificate
public event ReturningSignalHandler<TlsConnection, TlsConnection.AcceptCertificateSignalArgs, bool> OnAcceptCertificate