Package org.gnome.gio
Interface TlsBackend
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
TlsBackend.TlsBackend$Impl
TLS (Transport Layer Security, aka SSL) and DTLS backend. This is an
internal type used to coordinate the different classes implemented
by a TLS backend.
- Since:
- 2.28
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe TlsBackend$Impl type represents a native instance of the TlsBackend interface.static classProvides an interface for describing TLS-related types. -
Method Summary
Modifier and TypeMethodDescriptiondefault TypeGets theGTypeofbackend'sGTlsCertificateimplementation.default TypeGets theGTypeofbackend'sGTlsClientConnectionimplementation.static TlsBackendGets the defaultGTlsBackendfor the system.default TlsDatabaseGets the defaultGTlsDatabaseused to verify TLS connections.default TypeGets theGTypeofbackend’sGDtlsClientConnectionimplementation.default TypeGets theGTypeofbackend’sGDtlsServerConnectionimplementation.default TypeGets theGTypeofbackend'sGTlsFileDatabaseimplementation.default TypeGets theGTypeofbackend'sGTlsServerConnectionimplementation.static @Nullable TypegetType()Get the GType of the TlsBackend classdefault voidsetDefaultDatabase(@Nullable TlsDatabase database) Set the defaultGTlsDatabaseused to verify TLS connectionsdefault booleanChecks if DTLS is supported.default booleanChecks if TLS is supported; if this returnsfalsefor the defaultGTlsBackend, it means no "real" TLS backend is available.
-
Method Details
-
getType
-
getDefault
Gets the defaultGTlsBackendfor the system.- Returns:
- a
GTlsBackend, which will be a dummy object if no TLS backend is available - Since:
- 2.28
-
getCertificateType
Gets theGTypeofbackend'sGTlsCertificateimplementation.- Returns:
- the
GTypeofbackend'sGTlsCertificateimplementation. - Since:
- 2.28
-
getClientConnectionType
Gets theGTypeofbackend'sGTlsClientConnectionimplementation.- Returns:
- the
GTypeofbackend'sGTlsClientConnectionimplementation. - Since:
- 2.28
-
getDefaultDatabase
Gets the defaultGTlsDatabaseused to verify TLS connections.- Returns:
- the default database, which should be unreffed when done.
- Since:
- 2.30
-
getDtlsClientConnectionType
Gets theGTypeofbackend’sGDtlsClientConnectionimplementation.- Returns:
- the
GTypeofbackend’sGDtlsClientConnectionimplementation, orG_TYPE_INVALIDif this backend doesn’t support DTLS. - Since:
- 2.48
-
getDtlsServerConnectionType
Gets theGTypeofbackend’sGDtlsServerConnectionimplementation.- Returns:
- the
GTypeofbackend’sGDtlsServerConnectionimplementation, orG_TYPE_INVALIDif this backend doesn’t support DTLS. - Since:
- 2.48
-
getFileDatabaseType
Gets theGTypeofbackend'sGTlsFileDatabaseimplementation.- Returns:
- the
GTypeof backend'sGTlsFileDatabaseimplementation. - Since:
- 2.30
-
getServerConnectionType
Gets theGTypeofbackend'sGTlsServerConnectionimplementation.- Returns:
- the
GTypeofbackend'sGTlsServerConnectionimplementation. - Since:
- 2.28
-
setDefaultDatabase
Set the defaultGTlsDatabaseused to verify TLS connectionsAny subsequent call to g_tls_backend_get_default_database() will return the database set in this call. Existing databases and connections are not modified.
Setting a
nulldefault database will reset to using the system default database as if g_tls_backend_set_default_database() had never been called.- Parameters:
database- theGTlsDatabase- Since:
- 2.60
-
supportsDtls
default boolean supportsDtls()Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.- Returns:
- whether DTLS is supported
- Since:
- 2.48
-
supportsTls
default boolean supportsTls()Checks if TLS is supported; if this returnsfalsefor the defaultGTlsBackend, it means no "real" TLS backend is available.- Returns:
- whether or not TLS is supported
- Since:
- 2.28
-