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.Objects.TlsCertificate
Contents
Description
A certificate used for TLS authentication and encryption.
This can represent either a certificate only (eg, the certificate
received by a client from a server), or the combination of
a certificate and a private key (which is needed when acting as a
TlsServerConnection
).
Since: 2.28
Synopsis
- newtype TlsCertificate = TlsCertificate (ManagedPtr TlsCertificate)
- class (GObject o, IsDescendantOf TlsCertificate o) => IsTlsCertificate o
- toTlsCertificate :: (MonadIO m, IsTlsCertificate o) => o -> m TlsCertificate
- type family ResolveTlsCertificateMethod (t :: Symbol) o where ...
- data TlsCertificateGetDnsNamesMethodInfo
- tlsCertificateGetDnsNames :: (HasCallStack, MonadIO m, IsTlsCertificate a) => a -> m (Maybe [Bytes])
- data TlsCertificateGetIpAddressesMethodInfo
- tlsCertificateGetIpAddresses :: (HasCallStack, MonadIO m, IsTlsCertificate a) => a -> m (Maybe [InetAddress])
- data TlsCertificateGetIssuerMethodInfo
- tlsCertificateGetIssuer :: (HasCallStack, MonadIO m, IsTlsCertificate a) => a -> m (Maybe TlsCertificate)
- data TlsCertificateGetIssuerNameMethodInfo
- tlsCertificateGetIssuerName :: (HasCallStack, MonadIO m, IsTlsCertificate a) => a -> m (Maybe Text)
- data TlsCertificateGetNotValidAfterMethodInfo
- tlsCertificateGetNotValidAfter :: (HasCallStack, MonadIO m, IsTlsCertificate a) => a -> m (Maybe DateTime)
- data TlsCertificateGetNotValidBeforeMethodInfo
- tlsCertificateGetNotValidBefore :: (HasCallStack, MonadIO m, IsTlsCertificate a) => a -> m (Maybe DateTime)
- data TlsCertificateGetSubjectNameMethodInfo
- tlsCertificateGetSubjectName :: (HasCallStack, MonadIO m, IsTlsCertificate a) => a -> m (Maybe Text)
- data TlsCertificateIsSameMethodInfo
- tlsCertificateIsSame :: (HasCallStack, MonadIO m, IsTlsCertificate a, IsTlsCertificate b) => a -> b -> m Bool
- tlsCertificateListNewFromFile :: (HasCallStack, MonadIO m) => [Char] -> m [TlsCertificate]
- tlsCertificateNewFromFile :: (HasCallStack, MonadIO m) => [Char] -> m TlsCertificate
- tlsCertificateNewFromFileWithPassword :: (HasCallStack, MonadIO m) => [Char] -> Text -> m TlsCertificate
- tlsCertificateNewFromFiles :: (HasCallStack, MonadIO m) => [Char] -> [Char] -> m TlsCertificate
- tlsCertificateNewFromPem :: (HasCallStack, MonadIO m) => Text -> Int64 -> m TlsCertificate
- tlsCertificateNewFromPkcs11Uris :: (HasCallStack, MonadIO m) => Text -> Maybe Text -> m TlsCertificate
- tlsCertificateNewFromPkcs12 :: (HasCallStack, MonadIO m) => ByteString -> Maybe Text -> m TlsCertificate
- data TlsCertificateVerifyMethodInfo
- tlsCertificateVerify :: (HasCallStack, MonadIO m, IsTlsCertificate a, IsSocketConnectable b, IsTlsCertificate c) => a -> Maybe b -> Maybe c -> m [TlsCertificateFlags]
- data TlsCertificateCertificatePropertyInfo
- constructTlsCertificateCertificate :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o)
- getTlsCertificateCertificate :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe ByteString)
- tlsCertificateCertificate :: AttrLabelProxy "certificate"
- data TlsCertificateCertificatePemPropertyInfo
- constructTlsCertificateCertificatePem :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o)
- getTlsCertificateCertificatePem :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text)
- tlsCertificateCertificatePem :: AttrLabelProxy "certificatePem"
- data TlsCertificateDnsNamesPropertyInfo
- tlsCertificateDnsNames :: AttrLabelProxy "dnsNames"
- data TlsCertificateIpAddressesPropertyInfo
- tlsCertificateIpAddresses :: AttrLabelProxy "ipAddresses"
- data TlsCertificateIssuerPropertyInfo
- constructTlsCertificateIssuer :: (IsTlsCertificate o, MonadIO m, IsTlsCertificate a) => a -> m (GValueConstruct o)
- getTlsCertificateIssuer :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe TlsCertificate)
- tlsCertificateIssuer :: AttrLabelProxy "issuer"
- data TlsCertificateIssuerNamePropertyInfo
- getTlsCertificateIssuerName :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text)
- tlsCertificateIssuerName :: AttrLabelProxy "issuerName"
- data TlsCertificateNotValidAfterPropertyInfo
- getTlsCertificateNotValidAfter :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe DateTime)
- tlsCertificateNotValidAfter :: AttrLabelProxy "notValidAfter"
- data TlsCertificateNotValidBeforePropertyInfo
- getTlsCertificateNotValidBefore :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe DateTime)
- tlsCertificateNotValidBefore :: AttrLabelProxy "notValidBefore"
- data TlsCertificatePasswordPropertyInfo
- constructTlsCertificatePassword :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o)
- tlsCertificatePassword :: AttrLabelProxy "password"
- data TlsCertificatePkcs11UriPropertyInfo
- constructTlsCertificatePkcs11Uri :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o)
- getTlsCertificatePkcs11Uri :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text)
- tlsCertificatePkcs11Uri :: AttrLabelProxy "pkcs11Uri"
- data TlsCertificatePkcs12DataPropertyInfo
- constructTlsCertificatePkcs12Data :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o)
- tlsCertificatePkcs12Data :: AttrLabelProxy "pkcs12Data"
- data TlsCertificatePrivateKeyPropertyInfo
- constructTlsCertificatePrivateKey :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o)
- getTlsCertificatePrivateKey :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe ByteString)
- tlsCertificatePrivateKey :: AttrLabelProxy "privateKey"
- data TlsCertificatePrivateKeyPemPropertyInfo
- constructTlsCertificatePrivateKeyPem :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o)
- getTlsCertificatePrivateKeyPem :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text)
- tlsCertificatePrivateKeyPem :: AttrLabelProxy "privateKeyPem"
- data TlsCertificatePrivateKeyPkcs11UriPropertyInfo
- constructTlsCertificatePrivateKeyPkcs11Uri :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o)
- getTlsCertificatePrivateKeyPkcs11Uri :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text)
- tlsCertificatePrivateKeyPkcs11Uri :: AttrLabelProxy "privateKeyPkcs11Uri"
- data TlsCertificateSubjectNamePropertyInfo
- getTlsCertificateSubjectName :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text)
- tlsCertificateSubjectName :: AttrLabelProxy "subjectName"
Exported types
newtype TlsCertificate Source #
Memory-managed wrapper type.
Constructors
TlsCertificate (ManagedPtr TlsCertificate) |
Instances
class (GObject o, IsDescendantOf TlsCertificate o) => IsTlsCertificate o Source #
Type class for types which can be safely cast to TlsCertificate
, for instance with toTlsCertificate
.
Instances
(GObject o, IsDescendantOf TlsCertificate o) => IsTlsCertificate o Source # | |
Defined in GI.Gio.Objects.TlsCertificate |
toTlsCertificate :: (MonadIO m, IsTlsCertificate o) => o -> m TlsCertificate Source #
Cast to TlsCertificate
, 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, isSame, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, verify, watchClosure.
Getters
getData, getDnsNames, getIpAddresses, getIssuer, getIssuerName, getNotValidAfter, getNotValidBefore, getProperty, getQdata, getSubjectName.
Setters
type family ResolveTlsCertificateMethod (t :: Symbol) o where ... Source #
Equations
getDnsNames
data TlsCertificateGetDnsNamesMethodInfo Source #
Instances
(signature ~ m (Maybe [Bytes]), MonadIO m, IsTlsCertificate a) => OverloadedMethod TlsCertificateGetDnsNamesMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateGetDnsNamesMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
tlsCertificateGetDnsNames Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> a |
|
-> m (Maybe [Bytes]) | Returns: A |
Gets the value of TlsCertificate:dnsNames.
Since: 2.70
getIpAddresses
data TlsCertificateGetIpAddressesMethodInfo Source #
Instances
(signature ~ m (Maybe [InetAddress]), MonadIO m, IsTlsCertificate a) => OverloadedMethod TlsCertificateGetIpAddressesMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateGetIpAddressesMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
tlsCertificateGetIpAddresses Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> a |
|
-> m (Maybe [InetAddress]) | Returns: A |
Gets the value of TlsCertificate:ipAddresses.
Since: 2.70
getIssuer
data TlsCertificateGetIssuerMethodInfo Source #
Instances
(signature ~ m (Maybe TlsCertificate), MonadIO m, IsTlsCertificate a) => OverloadedMethod TlsCertificateGetIssuerMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateGetIssuerMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
tlsCertificateGetIssuer Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> a |
|
-> m (Maybe TlsCertificate) | Returns: The certificate of |
Gets the TlsCertificate
representing cert
's issuer, if known
Since: 2.28
getIssuerName
data TlsCertificateGetIssuerNameMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsTlsCertificate a) => OverloadedMethod TlsCertificateGetIssuerNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateGetIssuerNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
tlsCertificateGetIssuerName Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> a |
|
-> m (Maybe Text) | Returns: The issuer name, or |
Returns the issuer name from the certificate.
Since: 2.70
getNotValidAfter
data TlsCertificateGetNotValidAfterMethodInfo Source #
Instances
(signature ~ m (Maybe DateTime), MonadIO m, IsTlsCertificate a) => OverloadedMethod TlsCertificateGetNotValidAfterMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateGetNotValidAfterMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
tlsCertificateGetNotValidAfter Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> a |
|
-> m (Maybe DateTime) | Returns: The not-valid-after date, or |
Returns the time at which the certificate became or will become invalid.
Since: 2.70
getNotValidBefore
data TlsCertificateGetNotValidBeforeMethodInfo Source #
Instances
(signature ~ m (Maybe DateTime), MonadIO m, IsTlsCertificate a) => OverloadedMethod TlsCertificateGetNotValidBeforeMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateGetNotValidBeforeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
tlsCertificateGetNotValidBefore Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> a |
|
-> m (Maybe DateTime) | Returns: The not-valid-before date, or |
Returns the time at which the certificate became or will become valid.
Since: 2.70
getSubjectName
data TlsCertificateGetSubjectNameMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsTlsCertificate a) => OverloadedMethod TlsCertificateGetSubjectNameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateGetSubjectNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
tlsCertificateGetSubjectName Source #
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> a |
|
-> m (Maybe Text) | Returns: The subject name, or |
Returns the subject name from the certificate.
Since: 2.70
isSame
data TlsCertificateIsSameMethodInfo Source #
Instances
(signature ~ (b -> m Bool), MonadIO m, IsTlsCertificate a, IsTlsCertificate b) => OverloadedMethod TlsCertificateIsSameMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateIsSameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a, IsTlsCertificate b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: whether the same or not |
Check if two TlsCertificate
objects represent the same certificate.
The raw DER byte data of the two certificates are checked for equality.
This has the effect that two certificates may compare equal even if
their TlsCertificate:issuer, TlsCertificate:privateKey, or
TlsCertificate:privateKeyPem properties differ.
Since: 2.34
listNewFromFile
tlsCertificateListNewFromFile Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> m [TlsCertificate] | Returns: a
|
Creates one or more GTlsCertificates
from the PEM-encoded
data in file
. If file
cannot be read or parsed, the function will
return Nothing
and set error
. If file
does not contain any
PEM-encoded certificates, this will return an empty list and not
set error
.
Since: 2.28
newFromFile
tlsCertificateNewFromFile Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> m TlsCertificate | Returns: the new certificate, or |
Creates a TlsCertificate
from the data in file
.
As of 2.72, if the filename ends in .p12
or .pfx
the data is loaded by
tlsCertificateNewFromPkcs12
otherwise it is loaded by
tlsCertificateNewFromPem
. See those functions for
exact details.
If file
cannot be read or parsed, the function will return Nothing
and
set error
.
Since: 2.28
newFromFileWithPassword
tlsCertificateNewFromFileWithPassword Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> Text |
|
-> m TlsCertificate | Returns: the new certificate, or |
Creates a TlsCertificate
from the data in file
.
If file
cannot be read or parsed, the function will return Nothing
and
set error
.
Any unknown file types will error with IOErrorEnumNotSupported
.
Currently only .p12
and .pfx
files are supported.
See tlsCertificateNewFromPkcs12
for more details.
Since: 2.72
newFromFiles
tlsCertificateNewFromFiles Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> [Char] |
|
-> [Char] |
|
-> m TlsCertificate | Returns: the new certificate, or |
Creates a TlsCertificate
from the PEM-encoded data in certFile
and keyFile
. The returned certificate will be the first certificate
found in certFile
. As of GLib 2.44, if certFile
contains more
certificates it will try to load a certificate chain. All
certificates will be verified in the order found (top-level
certificate should be the last one in the file) and the
TlsCertificate:issuer property of each certificate will be set
accordingly if the verification succeeds. If any certificate in the
chain cannot be verified, the first certificate in the file will
still be returned.
If either file cannot be read or parsed, the function will return
Nothing
and set error
. Otherwise, this behaves like
tlsCertificateNewFromPem
.
Since: 2.28
newFromPem
tlsCertificateNewFromPem Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Int64 |
|
-> m TlsCertificate | Returns: the new certificate, or |
Creates a TlsCertificate
from the PEM-encoded data in data
. If
data
includes both a certificate and a private key, then the
returned certificate will include the private key data as well. (See
the TlsCertificate:privateKeyPem property for information about
supported formats.)
The returned certificate will be the first certificate found in
data
. As of GLib 2.44, if data
contains more certificates it will
try to load a certificate chain. All certificates will be verified in
the order found (top-level certificate should be the last one in the
file) and the TlsCertificate:issuer property of each certificate
will be set accordingly if the verification succeeds. If any
certificate in the chain cannot be verified, the first certificate in
the file will still be returned.
Since: 2.28
newFromPkcs11Uris
tlsCertificateNewFromPkcs11Uris Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Maybe Text |
|
-> m TlsCertificate | Returns: the new certificate, or |
Creates a TlsCertificate
from a
PKCS #11 URI.
An example pkcs11Uri
would be pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01
Where the token’s layout is:
Object 0: URL: pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01;object=private%20key;type=private Type: Private key (RSA-2048) ID: 01 Object 1: URL: pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01;object=Certificate%20for%20Authentication;type=cert Type: X.509 Certificate (RSA-2048) ID: 01
In this case the certificate and private key would both be detected and used as expected.
pkcsUri
may also just reference an X.509 certificate object and then optionally
privateKeyPkcs11Uri
allows using a private key exposed under a different URI.
Note that the private key is not accessed until usage and may fail or require a PIN later.
Since: 2.68
newFromPkcs12
tlsCertificateNewFromPkcs12 Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> ByteString |
|
-> Maybe Text |
|
-> m TlsCertificate | Returns: the new certificate, or |
Creates a TlsCertificate
from the data in data
. It must contain
a certificate and matching private key.
If extra certificates are included they will be verified as a chain and the TlsCertificate:issuer property will be set. All other data will be ignored.
You can pass as single password for all of the data which will be
used both for the PKCS 12
container as well as encrypted
private keys. If decryption fails it will error with
TlsErrorBadCertificatePassword
.
This constructor requires support in the current TlsBackend
.
If support is missing it will error with
IOErrorEnumNotSupported
.
Other parsing failures will error with TlsErrorBadCertificate
.
Since: 2.72
verify
data TlsCertificateVerifyMethodInfo Source #
Instances
(signature ~ (Maybe b -> Maybe c -> m [TlsCertificateFlags]), MonadIO m, IsTlsCertificate a, IsSocketConnectable b, IsTlsCertificate c) => OverloadedMethod TlsCertificateVerifyMethodInfo a signature Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo TlsCertificateVerifyMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Objects.TlsCertificate Methods |
Arguments
:: (HasCallStack, MonadIO m, IsTlsCertificate a, IsSocketConnectable b, IsTlsCertificate c) | |
=> a |
|
-> Maybe b |
|
-> Maybe c |
|
-> m [TlsCertificateFlags] | Returns: the appropriate |
This verifies cert
and returns a set of TlsCertificateFlags
indicating any problems found with it. This can be used to verify a
certificate outside the context of making a connection, or to
check a certificate against a CA that is not part of the system
CA database.
If cert
is valid, TlsCertificateFlagsNoFlags
is returned.
If identity
is not Nothing
, cert
's name(s) will be compared against
it, and TlsCertificateFlagsBadIdentity
will be set in the return
value if it does not match. If identity
is Nothing
, that bit will
never be set in the return value.
If trustedCa
is not Nothing
, then cert
(or one of the certificates
in its chain) must be signed by it, or else
TlsCertificateFlagsUnknownCa
will be set in the return value. If
trustedCa
is Nothing
, that bit will never be set in the return
value.
GLib guarantees that if certificate verification fails, at least one
error will be set in the return value, but it does not guarantee
that all possible errors will be set. Accordingly, you may not safely
decide to ignore any particular type of error. For example, it would
be incorrect to mask TlsCertificateFlagsExpired
if you want to allow
expired certificates, because this could potentially be the only
error flag set even if other problems exist with the certificate.
Because TLS session context is not used, TlsCertificate
may not
perform as many checks on the certificates as TlsConnection
would.
For example, certificate constraints may not be honored, and
revocation checks may not be performed. The best way to verify TLS
certificates used by a TLS connection is to let TlsConnection
handle the verification.
Since: 2.28
Properties
certificate
The DER (binary) encoded representation of the certificate. This property and the TlsCertificate:certificatePem property represent the same data, just in different forms.
Since: 2.28
data TlsCertificateCertificatePropertyInfo Source #
Instances
constructTlsCertificateCertificate :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “certificate
” property. This is rarely needed directly, but it is used by new
.
getTlsCertificateCertificate :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe ByteString) Source #
Get the value of the “certificate
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #certificate
tlsCertificateCertificate :: AttrLabelProxy "certificate" Source #
certificatePem
The PEM (ASCII) encoded representation of the certificate. This property and the TlsCertificate:certificate property represent the same data, just in different forms.
Since: 2.28
data TlsCertificateCertificatePemPropertyInfo Source #
Instances
AttrInfo TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo o => o -> IO (AttrGetType TlsCertificateCertificatePemPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo o, AttrSetTypeConstraint TlsCertificateCertificatePemPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo o, AttrSetTypeConstraint TlsCertificateCertificatePemPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo o, AttrTransferTypeConstraint TlsCertificateCertificatePemPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateCertificatePemPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateCertificatePemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificateCertificatePem :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “certificate-pem
” property. This is rarely needed directly, but it is used by new
.
getTlsCertificateCertificatePem :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #
Get the value of the “certificate-pem
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #certificatePem
tlsCertificateCertificatePem :: AttrLabelProxy "certificatePem" Source #
dnsNames
data TlsCertificateDnsNamesPropertyInfo Source #
Instances
AttrInfo TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateDnsNamesPropertyInfo o => o -> IO (AttrGetType TlsCertificateDnsNamesPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateDnsNamesPropertyInfo o, AttrSetTypeConstraint TlsCertificateDnsNamesPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateDnsNamesPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateDnsNamesPropertyInfo o, AttrSetTypeConstraint TlsCertificateDnsNamesPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateDnsNamesPropertyInfo o, AttrTransferTypeConstraint TlsCertificateDnsNamesPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateDnsNamesPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateDnsNamesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate |
tlsCertificateDnsNames :: AttrLabelProxy "dnsNames" Source #
ipAddresses
data TlsCertificateIpAddressesPropertyInfo Source #
Instances
AttrInfo TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo o => o -> IO (AttrGetType TlsCertificateIpAddressesPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo o, AttrSetTypeConstraint TlsCertificateIpAddressesPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo o, AttrSetTypeConstraint TlsCertificateIpAddressesPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo o, AttrTransferTypeConstraint TlsCertificateIpAddressesPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateIpAddressesPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateIpAddressesPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate |
tlsCertificateIpAddresses :: AttrLabelProxy "ipAddresses" Source #
issuer
A TlsCertificate
representing the entity that issued this
certificate. If Nothing
, this means that the certificate is either
self-signed, or else the certificate of the issuer is not
available.
Beware the issuer certificate may not be the same as the certificate that would actually be used to construct a valid certification path during certificate verification. RFC 4158 explains why an issuer certificate cannot be naively assumed to be part of the the certification path (though GLib's TLS backends may not follow the path building strategies outlined in this RFC). Due to the complexity of certification path building, GLib does not provide any way to know which certification path will actually be used. Accordingly, this property cannot be used to make security-related decisions. Only GLib itself should make security decisions about TLS certificates.
Since: 2.28
data TlsCertificateIssuerPropertyInfo Source #
Instances
AttrInfo TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo o => o -> IO (AttrGetType TlsCertificateIssuerPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo o, AttrSetTypeConstraint TlsCertificateIssuerPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo o, AttrSetTypeConstraint TlsCertificateIssuerPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo o, AttrTransferTypeConstraint TlsCertificateIssuerPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateIssuerPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateIssuerPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificateIssuer :: (IsTlsCertificate o, MonadIO m, IsTlsCertificate a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “issuer
” property. This is rarely needed directly, but it is used by new
.
getTlsCertificateIssuer :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe TlsCertificate) Source #
Get the value of the “issuer
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #issuer
tlsCertificateIssuer :: AttrLabelProxy "issuer" Source #
issuerName
The issuer from the certificate,
Nothing
if unavailable.
Since: 2.70
data TlsCertificateIssuerNamePropertyInfo Source #
Instances
AttrInfo TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo o => o -> IO (AttrGetType TlsCertificateIssuerNamePropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo o, AttrSetTypeConstraint TlsCertificateIssuerNamePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo o, AttrSetTypeConstraint TlsCertificateIssuerNamePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo o, AttrTransferTypeConstraint TlsCertificateIssuerNamePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateIssuerNamePropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateIssuerNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate |
getTlsCertificateIssuerName :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #
Get the value of the “issuer-name
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #issuerName
tlsCertificateIssuerName :: AttrLabelProxy "issuerName" Source #
notValidAfter
The time at which this cert is no longer valid,
Nothing
if unavailable.
Since: 2.70
data TlsCertificateNotValidAfterPropertyInfo Source #
Instances
AttrInfo TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo o => o -> IO (AttrGetType TlsCertificateNotValidAfterPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo o, AttrSetTypeConstraint TlsCertificateNotValidAfterPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo o, AttrSetTypeConstraint TlsCertificateNotValidAfterPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo o, AttrTransferTypeConstraint TlsCertificateNotValidAfterPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateNotValidAfterPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateNotValidAfterPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate |
getTlsCertificateNotValidAfter :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe DateTime) Source #
Get the value of the “not-valid-after
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #notValidAfter
tlsCertificateNotValidAfter :: AttrLabelProxy "notValidAfter" Source #
notValidBefore
The time at which this cert is considered to be valid,
Nothing
if unavailable.
Since: 2.70
data TlsCertificateNotValidBeforePropertyInfo Source #
Instances
AttrInfo TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo o => o -> IO (AttrGetType TlsCertificateNotValidBeforePropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo o, AttrSetTypeConstraint TlsCertificateNotValidBeforePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo o, AttrSetTypeConstraint TlsCertificateNotValidBeforePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo o, AttrTransferTypeConstraint TlsCertificateNotValidBeforePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateNotValidBeforePropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateNotValidBeforePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate |
getTlsCertificateNotValidBefore :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe DateTime) Source #
Get the value of the “not-valid-before
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #notValidBefore
tlsCertificateNotValidBefore :: AttrLabelProxy "notValidBefore" Source #
password
An optional password used when constructed with GTlsCertificate:pkcs12-data.
Since: 2.72
data TlsCertificatePasswordPropertyInfo Source #
Instances
AttrInfo TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo o => o -> IO (AttrGetType TlsCertificatePasswordPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo o, AttrSetTypeConstraint TlsCertificatePasswordPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo o, AttrSetTypeConstraint TlsCertificatePasswordPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo o, AttrTransferTypeConstraint TlsCertificatePasswordPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificatePasswordPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificatePasswordPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificatePassword :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “password
” property. This is rarely needed directly, but it is used by new
.
tlsCertificatePassword :: AttrLabelProxy "password" Source #
pkcs11Uri
A URI referencing the PKCS #11 objects containing an X.509 certificate and optionally a private key.
If Nothing
, the certificate is either not backed by PKCS #11 or the
TlsBackend
does not support PKCS #11.
Since: 2.68
data TlsCertificatePkcs11UriPropertyInfo Source #
Instances
AttrInfo TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo o => o -> IO (AttrGetType TlsCertificatePkcs11UriPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo o, AttrSetTypeConstraint TlsCertificatePkcs11UriPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo o, AttrSetTypeConstraint TlsCertificatePkcs11UriPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo o, AttrTransferTypeConstraint TlsCertificatePkcs11UriPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificatePkcs11UriPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificatePkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificatePkcs11Uri :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pkcs11-uri
” property. This is rarely needed directly, but it is used by new
.
getTlsCertificatePkcs11Uri :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #
Get the value of the “pkcs11-uri
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #pkcs11Uri
tlsCertificatePkcs11Uri :: AttrLabelProxy "pkcs11Uri" Source #
pkcs12Data
The PKCS 12
formatted data used to construct the object.
See also: tlsCertificateNewFromPkcs12
Since: 2.72
data TlsCertificatePkcs12DataPropertyInfo Source #
Instances
AttrInfo TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo o => o -> IO (AttrGetType TlsCertificatePkcs12DataPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo o, AttrSetTypeConstraint TlsCertificatePkcs12DataPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo o, AttrSetTypeConstraint TlsCertificatePkcs12DataPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo o, AttrTransferTypeConstraint TlsCertificatePkcs12DataPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificatePkcs12DataPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificatePkcs12DataPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificatePkcs12Data :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “pkcs12-data
” property. This is rarely needed directly, but it is used by new
.
tlsCertificatePkcs12Data :: AttrLabelProxy "pkcs12Data" Source #
privateKey
The DER (binary) encoded representation of the certificate's
private key, in either PKCS #1 format
or unencrypted PKCS #8 format.
PKCS #8 format is supported since 2.32; earlier releases only
support PKCS #1. You can use the openssl rsa
tool to convert
PKCS #8 keys to PKCS #1.
This property (or the TlsCertificate:privateKeyPem property)
can be set when constructing a key (for example, from a file).
Since GLib 2.70, it is now also readable; however, be aware that if
the private key is backed by a PKCS #11 URI – for example, if it
is stored on a smartcard – then this property will be Nothing
. If so,
the private key must be referenced via its PKCS #11 URI,
TlsCertificate:privateKeyPkcs11Uri. You must check both
properties to see if the certificate really has a private key.
When this property is read, the output format will be unencrypted
PKCS #8.
Since: 2.28
data TlsCertificatePrivateKeyPropertyInfo Source #
Instances
AttrInfo TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo o => o -> IO (AttrGetType TlsCertificatePrivateKeyPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo o, AttrSetTypeConstraint TlsCertificatePrivateKeyPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo o, AttrSetTypeConstraint TlsCertificatePrivateKeyPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo o, AttrTransferTypeConstraint TlsCertificatePrivateKeyPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificatePrivateKeyPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificatePrivateKeyPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificatePrivateKey :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “private-key
” property. This is rarely needed directly, but it is used by new
.
getTlsCertificatePrivateKey :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe ByteString) Source #
Get the value of the “private-key
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #privateKey
tlsCertificatePrivateKey :: AttrLabelProxy "privateKey" Source #
privateKeyPem
The PEM (ASCII) encoded representation of the certificate's
private key in either PKCS #1 format
("BEGIN RSA PRIVATE KEY
") or unencrypted
PKCS #8 format
("BEGIN PRIVATE KEY
"). PKCS #8 format is supported since 2.32;
earlier releases only support PKCS #1. You can use the openssl rsa
tool to convert PKCS #8 keys to PKCS #1.
This property (or the TlsCertificate:privateKey property)
can be set when constructing a key (for example, from a file).
Since GLib 2.70, it is now also readable; however, be aware that if
the private key is backed by a PKCS #11 URI - for example, if it
is stored on a smartcard - then this property will be Nothing
. If so,
the private key must be referenced via its PKCS #11 URI,
TlsCertificate:privateKeyPkcs11Uri. You must check both
properties to see if the certificate really has a private key.
When this property is read, the output format will be unencrypted
PKCS #8.
Since: 2.28
data TlsCertificatePrivateKeyPemPropertyInfo Source #
Instances
AttrInfo TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo o => o -> IO (AttrGetType TlsCertificatePrivateKeyPemPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo o, AttrSetTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo o, AttrSetTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo o, AttrTransferTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificatePrivateKeyPemPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificatePrivateKeyPem :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “private-key-pem
” property. This is rarely needed directly, but it is used by new
.
getTlsCertificatePrivateKeyPem :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #
Get the value of the “private-key-pem
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #privateKeyPem
tlsCertificatePrivateKeyPem :: AttrLabelProxy "privateKeyPem" Source #
privateKeyPkcs11Uri
A URI referencing a PKCS #11 object containing a private key.
Since: 2.68
data TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source #
Instances
AttrInfo TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo o => o -> IO (AttrGetType TlsCertificatePrivateKeyPkcs11UriPropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo o, AttrSetTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo o, AttrSetTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo o, AttrTransferTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificatePrivateKeyPkcs11UriPropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructTlsCertificatePrivateKeyPkcs11Uri :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “private-key-pkcs11-uri
” property. This is rarely needed directly, but it is used by new
.
getTlsCertificatePrivateKeyPkcs11Uri :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #
Get the value of the “private-key-pkcs11-uri
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #privateKeyPkcs11Uri
tlsCertificatePrivateKeyPkcs11Uri :: AttrLabelProxy "privateKeyPkcs11Uri" Source #
subjectName
The subject from the cert,
Nothing
if unavailable.
Since: 2.70
data TlsCertificateSubjectNamePropertyInfo Source #
Instances
AttrInfo TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate Associated Types
Methods attrGet :: AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo o => o -> IO (AttrGetType TlsCertificateSubjectNamePropertyInfo) # attrSet :: (AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo o, AttrSetTypeConstraint TlsCertificateSubjectNamePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo o, AttrSetTypeConstraint TlsCertificateSubjectNamePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo o, AttrTransferTypeConstraint TlsCertificateSubjectNamePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType TlsCertificateSubjectNamePropertyInfo) # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrLabel TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrOrigin TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferType TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint TlsCertificateSubjectNamePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gio.Objects.TlsCertificate |
getTlsCertificateSubjectName :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #
Get the value of the “subject-name
” property.
When overloading is enabled, this is equivalent to
get
tlsCertificate #subjectName
tlsCertificateSubjectName :: AttrLabelProxy "subjectName" Source #