Tls
Connection
Class
constructor
parent
Class
name
accept
Certificate
get
Binding
Data
get
Negotiated
Protocol
handshake
handshake
Async
handshake
Finish
NODE-GTK API Reference
Gio-2.0
Gio
TlsConnectionClass
Class TlsConnectionClass
The class structure for the #GTlsConnection type.
record
Hierarchy
TlsConnectionClass
Index
Constructors
constructor
Properties
parent
Class
name
Methods
accept
Certificate
get
Binding
Data
get
Negotiated
Protocol
handshake
handshake
Async
handshake
Finish
Constructors
constructor
new
Tls
Connection
Class
(
)
:
TlsConnectionClass
Returns
TlsConnectionClass
Properties
parent
Class
parent
Class
:
IOStreamClass
The parent class.
field
Static
name
name
:
string
Methods
accept
Certificate
accept
Certificate
(
connection
:
TlsConnection
, peerCert
:
TlsCertificate
, errors
:
TlsCertificateFlags
)
:
boolean
Parameters
connection:
TlsConnection
peerCert:
TlsCertificate
errors:
TlsCertificateFlags
Returns
boolean
get
Binding
Data
get
Binding
Data
(
conn
:
TlsConnection
, type
:
TlsChannelBindingType
, data
:
Uint8Array
)
:
boolean
Parameters
conn:
TlsConnection
type:
TlsChannelBindingType
data:
Uint8Array
Returns
boolean
get
Negotiated
Protocol
get
Negotiated
Protocol
(
conn
:
TlsConnection
)
:
string
Parameters
conn:
TlsConnection
Returns
string
handshake
handshake
(
conn
:
TlsConnection
, cancellable
:
Gio
.
Cancellable
)
:
boolean
Parameters
conn:
TlsConnection
cancellable:
Gio
.
Cancellable
Returns
boolean
handshake
Async
handshake
Async
(
conn
:
TlsConnection
, ioPriority
:
number
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
conn:
TlsConnection
ioPriority:
number
cancellable:
Gio
.
Cancellable
callback:
AsyncReadyCallback
Returns
void
handshake
Finish
handshake
Finish
(
conn
:
TlsConnection
, result
:
AsyncResult
)
:
boolean
Parameters
conn:
TlsConnection
result:
AsyncResult
Returns
boolean
Tls
Connection
Class
constructor
parent
Class
name
accept
Certificate
get
Binding
Data
get
Negotiated
Protocol
handshake
handshake
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