Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Interfaces.TlsBackend
Description
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
Synopsis
- newtype TlsBackend = TlsBackend (ManagedPtr TlsBackend)
- class (GObject o, IsDescendantOf TlsBackend o) => IsTlsBackend o
- toTlsBackend :: (MonadIO m, IsTlsBackend o) => o -> m TlsBackend
- type family ResolveTlsBackendMethod (t :: Symbol) o where ...
- data TlsBackendGetCertificateTypeMethodInfo
- tlsBackendGetCertificateType :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m GType
- data TlsBackendGetClientConnectionTypeMethodInfo
- tlsBackendGetClientConnectionType :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m GType
- tlsBackendGetDefault :: (HasCallStack, MonadIO m) => m TlsBackend
- data TlsBackendGetDefaultDatabaseMethodInfo
- tlsBackendGetDefaultDatabase :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m TlsDatabase
- data TlsBackendGetDtlsClientConnectionTypeMethodInfo
- tlsBackendGetDtlsClientConnectionType :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m GType
- data TlsBackendGetDtlsServerConnectionTypeMethodInfo
- tlsBackendGetDtlsServerConnectionType :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m GType
- data TlsBackendGetFileDatabaseTypeMethodInfo
- tlsBackendGetFileDatabaseType :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m GType
- data TlsBackendGetServerConnectionTypeMethodInfo
- tlsBackendGetServerConnectionType :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m GType
- data TlsBackendSetDefaultDatabaseMethodInfo
- tlsBackendSetDefaultDatabase :: (HasCallStack, MonadIO m, IsTlsBackend a, IsTlsDatabase b) => a -> Maybe b -> m ()
- data TlsBackendSupportsDtlsMethodInfo
- tlsBackendSupportsDtls :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m Bool
- data TlsBackendSupportsTlsMethodInfo
- tlsBackendSupportsTls :: (HasCallStack, MonadIO m, IsTlsBackend a) => a -> m Bool
Exported types
newtype TlsBackend Source #
Memory-managed wrapper type.
Constructors
TlsBackend (ManagedPtr TlsBackend) |
Instances
class (GObject o, IsDescendantOf TlsBackend o) => IsTlsBackend o Source #
Type class for types which can be safely cast to TlsBackend
, for instance with toTlsBackend
.
Instances
(GObject o, IsDescendantOf TlsBackend o) => IsTlsBackend o Source # | |
Defined in GI.Gio.Interfaces.TlsBackend |
toTlsBackend :: (MonadIO m, IsTlsBackend o) => o -> m TlsBackend Source #
Cast to TlsBackend
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, supportsDtls, supportsTls, thawNotify, unref, watchClosure.
Getters
getCertificateType, getClientConnectionType, getData, getDefaultDatabase, getDtlsClientConnectionType, getDtlsServerConnectionType, getFileDatabaseType, getProperty, getQdata, getServerConnectionType.
Setters
type family ResolveTlsBackendMethod (t :: Symbol) o where ... Source #
Equations
getCertificateType
data TlsBackendGetCertificateTypeMethodInfo Source #
Instances
(signature ~ m GType, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendGetCertificateTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendGetCertificateTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendGetCertificateType Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m GType | Returns: the |
Gets the GType
of backend
's TlsCertificate
implementation.
Since: 2.28
getClientConnectionType
data TlsBackendGetClientConnectionTypeMethodInfo Source #
Instances
(signature ~ m GType, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendGetClientConnectionTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendGetClientConnectionTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendGetClientConnectionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m GType | Returns: the |
Gets the GType
of backend
's TlsClientConnection
implementation.
Since: 2.28
getDefault
Arguments
:: (HasCallStack, MonadIO m) | |
=> m TlsBackend | Returns: a |
Gets the default TlsBackend
for the system.
Since: 2.28
getDefaultDatabase
data TlsBackendGetDefaultDatabaseMethodInfo Source #
Instances
(signature ~ m TlsDatabase, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendGetDefaultDatabaseMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendGetDefaultDatabaseMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendGetDefaultDatabase Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m TlsDatabase | Returns: the default database, which should be unreffed when done. |
Gets the default TlsDatabase
used to verify TLS connections.
Since: 2.30
getDtlsClientConnectionType
data TlsBackendGetDtlsClientConnectionTypeMethodInfo Source #
Instances
(signature ~ m GType, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendGetDtlsClientConnectionTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendGetDtlsClientConnectionTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendGetDtlsClientConnectionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m GType | Returns: the |
Gets the GType
of backend
’s DtlsClientConnection
implementation.
Since: 2.48
getDtlsServerConnectionType
data TlsBackendGetDtlsServerConnectionTypeMethodInfo Source #
Instances
(signature ~ m GType, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendGetDtlsServerConnectionTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendGetDtlsServerConnectionTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendGetDtlsServerConnectionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m GType | Returns: the |
Gets the GType
of backend
’s DtlsServerConnection
implementation.
Since: 2.48
getFileDatabaseType
data TlsBackendGetFileDatabaseTypeMethodInfo Source #
Instances
(signature ~ m GType, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendGetFileDatabaseTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendGetFileDatabaseTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendGetFileDatabaseType Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m GType | Returns: the |
Gets the GType
of backend
's TlsFileDatabase
implementation.
Since: 2.30
getServerConnectionType
data TlsBackendGetServerConnectionTypeMethodInfo Source #
Instances
(signature ~ m GType, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendGetServerConnectionTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendGetServerConnectionTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendGetServerConnectionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m GType | Returns: the |
Gets the GType
of backend
's TlsServerConnection
implementation.
Since: 2.28
setDefaultDatabase
data TlsBackendSetDefaultDatabaseMethodInfo Source #
Instances
(signature ~ (Maybe b -> m ()), MonadIO m, IsTlsBackend a, IsTlsDatabase b) => OverloadedMethod TlsBackendSetDefaultDatabaseMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendSetDefaultDatabaseMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendSetDefaultDatabase Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a, IsTlsDatabase b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Set the default TlsDatabase
used to verify TLS connections
Any subsequent call to tlsBackendGetDefaultDatabase
will return
the database set in this call. Existing databases and connections are not
modified.
Setting a Nothing
default database will reset to using the system default
database as if tlsBackendSetDefaultDatabase
had never been called.
Since: 2.60
supportsDtls
data TlsBackendSupportsDtlsMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendSupportsDtlsMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendSupportsDtlsMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendSupportsDtls Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m Bool | Returns: whether DTLS is supported |
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
Since: 2.48
supportsTls
data TlsBackendSupportsTlsMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsTlsBackend a) => OverloadedMethod TlsBackendSupportsTlsMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsBackendSupportsTlsMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.TlsBackend Methods |
tlsBackendSupportsTls Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsBackend a) | |
=> a |
|
-> m Bool | Returns: whether or not TLS is supported |
Checks if TLS is supported; if this returns False
for the default
TlsBackend
, it means no "real" TLS backend is available.
Since: 2.28