Package ch.bailu.gtk.gio
Class TlsBackend
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gio.TlsBackend
- All Implemented Interfaces:
PointerInterface
TLS (Transport Layer Security, aka SSL) and DTLS backend.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
Gets the #GType of @backend's #GTlsCertificate implementation.static ClassHandler
long
Gets the #GType of @backend's #GTlsClientConnection implementation.static TlsBackend
Gets the default #GTlsBackend for the system.Gets the default #GTlsDatabase used to verify TLS connections.long
Gets the #GType of @backend’s #GDtlsClientConnection implementation.long
Gets the #GType of @backend’s #GDtlsServerConnection implementation.long
Gets the #GType of @backend's #GTlsFileDatabase implementation.static int
static long
static TypeSystem.TypeSize
long
Gets the #GType of @backend's #GTlsServerConnection implementation.static long
static TypeSystem.TypeSize
void
setDefaultDatabase
(TlsDatabase database) Set the default #GTlsDatabase used to verify TLS connections
Any subsequent call to g_tls_backend_get_default_database() will return
the database set in this call.boolean
Checks if DTLS is supported.boolean
Checks if TLS is supported; if this returns %FALSE for the default
#GTlsBackend, it means no "real" TLS backend is available.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
TlsBackend
-
-
Method Details
-
getClassHandler
-
getCertificateType
public long getCertificateType()Gets the #GType of @backend's #GTlsCertificate implementation.- Returns:
- the #GType of @backend's #GTlsCertificate implementation.
-
getClientConnectionType
public long getClientConnectionType()Gets the #GType of @backend's #GTlsClientConnection implementation.- Returns:
- the #GType of @backend's #GTlsClientConnection implementation.
-
getDefaultDatabase
Gets the default #GTlsDatabase used to verify TLS connections.- Returns:
- the default database, which should be unreffed when done.
-
getDtlsClientConnectionType
public long getDtlsClientConnectionType()Gets the #GType of @backend’s #GDtlsClientConnection implementation.- Returns:
- the #GType of @backend’s #GDtlsClientConnection implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS.
-
getDtlsServerConnectionType
public long getDtlsServerConnectionType()Gets the #GType of @backend’s #GDtlsServerConnection implementation.- Returns:
- the #GType of @backend’s #GDtlsServerConnection implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS.
-
getFileDatabaseType
public long getFileDatabaseType()Gets the #GType of @backend's #GTlsFileDatabase implementation.- Returns:
- the #GType of backend's #GTlsFileDatabase implementation.
-
getServerConnectionType
public long getServerConnectionType()Gets the #GType of @backend's #GTlsServerConnection implementation.- Returns:
- the #GType of @backend's #GTlsServerConnection implementation.
-
setDefaultDatabase
Set the default #GTlsDatabase used to verify TLS connections
Any 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 %NULL default database will reset to using the system default
database as if g_tls_backend_set_default_database() had never been called.- Parameters:
database
- the #GTlsDatabase
-
supportsDtls
public 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
-
supportsTls
public boolean supportsTls()Checks if TLS is supported; if this returns %FALSE for the default
#GTlsBackend, it means no "real" TLS backend is available.- Returns:
- whether or not TLS is supported
-
getDefault
Gets the default #GTlsBackend for the system.- Returns:
- a #GTlsBackend, which will be a dummy object if no TLS backend is available
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-