Tls
Connection
Class
constructor
parent_
class
name
accept_
certificate
get_
binding_
data
get_
negotiated_
protocol
handshake
handshake_
async
handshake_
finish
GJS 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
, peer_cert
:
TlsCertificate
, errors
:
TlsCertificateFlags
)
:
boolean
Parameters
connection:
TlsConnection
peer_cert:
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
, io_priority
:
number
, cancellable
:
Gio
.
Cancellable
, callback
:
AsyncReadyCallback
)
:
void
Parameters
conn:
TlsConnection
io_priority:
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_
async
handsh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