Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GTlsFileDatabase
is implemented by TlsDatabase
objects which
load their certificate information from a file. It is an interface which
TLS library specific subtypes implement.
Since: 2.30
Synopsis
- newtype TlsFileDatabase = TlsFileDatabase (ManagedPtr TlsFileDatabase)
- class (GObject o, IsDescendantOf TlsFileDatabase o) => IsTlsFileDatabase o
- toTlsFileDatabase :: (MonadIO m, IsTlsFileDatabase o) => o -> m TlsFileDatabase
- tlsFileDatabaseNew :: (HasCallStack, MonadIO m) => [Char] -> m TlsFileDatabase
- clearTlsFileDatabaseAnchors :: (MonadIO m, IsTlsFileDatabase o) => o -> m ()
- constructTlsFileDatabaseAnchors :: (IsTlsFileDatabase o, MonadIO m) => Text -> m (GValueConstruct o)
- getTlsFileDatabaseAnchors :: (MonadIO m, IsTlsFileDatabase o) => o -> m (Maybe Text)
- setTlsFileDatabaseAnchors :: (MonadIO m, IsTlsFileDatabase o) => o -> Text -> m ()
Exported types
newtype TlsFileDatabase Source #
Memory-managed wrapper type.
Instances
Eq TlsFileDatabase Source # | |
Defined in GI.Gio.Interfaces.TlsFileDatabase (==) :: TlsFileDatabase -> TlsFileDatabase -> Bool # (/=) :: TlsFileDatabase -> TlsFileDatabase -> Bool # | |
GObject TlsFileDatabase Source # | |
Defined in GI.Gio.Interfaces.TlsFileDatabase | |
ManagedPtrNewtype TlsFileDatabase Source # | |
Defined in GI.Gio.Interfaces.TlsFileDatabase | |
TypedObject TlsFileDatabase Source # | |
Defined in GI.Gio.Interfaces.TlsFileDatabase | |
HasParentTypes TlsFileDatabase Source # | |
Defined in GI.Gio.Interfaces.TlsFileDatabase | |
IsGValue (Maybe TlsFileDatabase) Source # | Convert |
Defined in GI.Gio.Interfaces.TlsFileDatabase gvalueGType_ :: IO GType # gvalueSet_ :: Ptr GValue -> Maybe TlsFileDatabase -> IO () # gvalueGet_ :: Ptr GValue -> IO (Maybe TlsFileDatabase) # | |
type ParentTypes TlsFileDatabase Source # | |
Defined in GI.Gio.Interfaces.TlsFileDatabase |
class (GObject o, IsDescendantOf TlsFileDatabase o) => IsTlsFileDatabase o Source #
Type class for types which can be safely cast to TlsFileDatabase
, for instance with toTlsFileDatabase
.
Instances
(GObject o, IsDescendantOf TlsFileDatabase o) => IsTlsFileDatabase o Source # | |
Defined in GI.Gio.Interfaces.TlsFileDatabase |
toTlsFileDatabase :: (MonadIO m, IsTlsFileDatabase o) => o -> m TlsFileDatabase Source #
Cast to TlsFileDatabase
, 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, createCertificateHandle, forceFloating, freezeNotify, getv, isFloating, lookupCertificateForHandle, lookupCertificateForHandleAsync, lookupCertificateForHandleFinish, lookupCertificateIssuer, lookupCertificateIssuerAsync, lookupCertificateIssuerFinish, lookupCertificatesIssuedBy, lookupCertificatesIssuedByAsync, lookupCertificatesIssuedByFinish, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, verifyChain, verifyChainAsync, verifyChainFinish, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
new
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> m TlsFileDatabase | Returns: the new
|
Creates a new TlsFileDatabase
which uses anchor certificate authorities
in anchors
to verify certificate chains.
The certificates in anchors
must be PEM encoded.
Since: 2.30
Properties
anchors
The path to a file containing PEM encoded certificate authority
root anchors. The certificates in this file will be treated as
root authorities for the purpose of verifying other certificates
via the tlsDatabaseVerifyChain
operation.
Since: 2.30
clearTlsFileDatabaseAnchors :: (MonadIO m, IsTlsFileDatabase o) => o -> m () Source #
Set the value of the “anchors
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#anchors
constructTlsFileDatabaseAnchors :: (IsTlsFileDatabase o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “anchors
” property. This is rarely needed directly, but it is used by new
.
getTlsFileDatabaseAnchors :: (MonadIO m, IsTlsFileDatabase o) => o -> m (Maybe Text) Source #
Get the value of the “anchors
” property.
When overloading is enabled, this is equivalent to
get
tlsFileDatabase #anchors
setTlsFileDatabaseAnchors :: (MonadIO m, IsTlsFileDatabase o) => o -> Text -> m () Source #
Set the value of the “anchors
” property.
When overloading is enabled, this is equivalent to
set
tlsFileDatabase [ #anchors:=
value ]