Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
Holds a password used in TLS.
Since: 2.30
Synopsis
- newtype TlsPassword = TlsPassword (ManagedPtr TlsPassword)
- class (GObject o, IsDescendantOf TlsPassword o) => IsTlsPassword o
- toTlsPassword :: (MonadIO m, IsTlsPassword o) => o -> m TlsPassword
- tlsPasswordGetDescription :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> m Text
- tlsPasswordGetFlags :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> m [TlsPasswordFlags]
- tlsPasswordGetWarning :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> m Text
- tlsPasswordNew :: (HasCallStack, MonadIO m) => [TlsPasswordFlags] -> Text -> m TlsPassword
- tlsPasswordSetDescription :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> Text -> m ()
- tlsPasswordSetFlags :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> [TlsPasswordFlags] -> m ()
- tlsPasswordSetValue :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> ByteString -> m ()
- tlsPasswordSetValueFull :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> ByteString -> Maybe DestroyNotify -> m ()
- tlsPasswordSetWarning :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> Text -> m ()
- constructTlsPasswordDescription :: (IsTlsPassword o, MonadIO m) => Text -> m (GValueConstruct o)
- getTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> m Text
- setTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> Text -> m ()
- constructTlsPasswordFlags :: (IsTlsPassword o, MonadIO m) => [TlsPasswordFlags] -> m (GValueConstruct o)
- getTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> m [TlsPasswordFlags]
- setTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> [TlsPasswordFlags] -> m ()
- constructTlsPasswordWarning :: (IsTlsPassword o, MonadIO m) => Text -> m (GValueConstruct o)
- getTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> m Text
- setTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> Text -> m ()
Exported types
newtype TlsPassword Source #
Memory-managed wrapper type.
Instances
Eq TlsPassword Source # | |
Defined in GI.Gio.Objects.TlsPassword (==) :: TlsPassword -> TlsPassword -> Bool # (/=) :: TlsPassword -> TlsPassword -> Bool # | |
IsGValue TlsPassword Source # | Convert |
Defined in GI.Gio.Objects.TlsPassword toGValue :: TlsPassword -> IO GValue # fromGValue :: GValue -> IO TlsPassword # | |
ManagedPtrNewtype TlsPassword Source # | |
Defined in GI.Gio.Objects.TlsPassword | |
TypedObject TlsPassword Source # | |
Defined in GI.Gio.Objects.TlsPassword | |
GObject TlsPassword Source # | |
Defined in GI.Gio.Objects.TlsPassword | |
HasParentTypes TlsPassword Source # | |
Defined in GI.Gio.Objects.TlsPassword | |
type ParentTypes TlsPassword Source # | |
Defined in GI.Gio.Objects.TlsPassword |
class (GObject o, IsDescendantOf TlsPassword o) => IsTlsPassword o Source #
Type class for types which can be safely cast to TlsPassword
, for instance with toTlsPassword
.
Instances
(GObject o, IsDescendantOf TlsPassword o) => IsTlsPassword o Source # | |
Defined in GI.Gio.Objects.TlsPassword |
toTlsPassword :: (MonadIO m, IsTlsPassword o) => o -> m TlsPassword Source #
Cast to TlsPassword
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Overloaded methods
getDescription
tlsPasswordGetDescription Source #
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> m Text | Returns: The description of the password. |
Get a description string about what the password will be used for.
Since: 2.30
getFlags
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> m [TlsPasswordFlags] | Returns: The flags about the password. |
Get flags about the password.
Since: 2.30
getWarning
tlsPasswordGetWarning Source #
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> m Text | Returns: The warning. |
Get a user readable translated warning. Usually this warning is a
representation of the password flags returned from
tlsPasswordGetFlags
.
Since: 2.30
new
:: (HasCallStack, MonadIO m) | |
=> [TlsPasswordFlags] |
|
-> Text |
|
-> m TlsPassword | Returns: The newly allocated password object |
Create a new TlsPassword
object.
setDescription
tlsPasswordSetDescription Source #
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> Text |
|
-> m () |
Set a description string about what the password will be used for.
Since: 2.30
setFlags
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> [TlsPasswordFlags] |
|
-> m () |
Set flags about the password.
Since: 2.30
setValue
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> ByteString |
|
-> m () |
Set the value for this password. The value
will be copied by the password
object.
Specify the length
, for a non-nul-terminated password. Pass -1 as
length
if using a nul-terminated password, and length
will be
calculated automatically. (Note that the terminating nul is not
considered part of the password in this case.)
Since: 2.30
setValueFull
tlsPasswordSetValueFull Source #
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> ByteString |
|
-> Maybe DestroyNotify |
|
-> m () |
Provide the value for this password.
The value
will be owned by the password object, and later freed using
the destroy
function callback.
Specify the length
, for a non-nul-terminated password. Pass -1 as
length
if using a nul-terminated password, and length
will be
calculated automatically. (Note that the terminating nul is not
considered part of the password in this case.)
Since: 2.30
setWarning
tlsPasswordSetWarning Source #
:: (HasCallStack, MonadIO m, IsTlsPassword a) | |
=> a |
|
-> Text |
|
-> m () |
Set a user readable translated warning. Usually this warning is a
representation of the password flags returned from
tlsPasswordGetFlags
.
Since: 2.30
Properties
description
No description available in the introspection data.
constructTlsPasswordDescription :: (IsTlsPassword o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “description
” property. This is rarely needed directly, but it is used by new
.
getTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> m Text Source #
Get the value of the “description
” property.
When overloading is enabled, this is equivalent to
get
tlsPassword #description
setTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> Text -> m () Source #
Set the value of the “description
” property.
When overloading is enabled, this is equivalent to
set
tlsPassword [ #description:=
value ]
flags
No description available in the introspection data.
constructTlsPasswordFlags :: (IsTlsPassword o, MonadIO m) => [TlsPasswordFlags] -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flags
” property. This is rarely needed directly, but it is used by new
.
getTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> m [TlsPasswordFlags] Source #
Get the value of the “flags
” property.
When overloading is enabled, this is equivalent to
get
tlsPassword #flags
setTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> [TlsPasswordFlags] -> m () Source #
Set the value of the “flags
” property.
When overloading is enabled, this is equivalent to
set
tlsPassword [ #flags:=
value ]
warning
No description available in the introspection data.
constructTlsPasswordWarning :: (IsTlsPassword o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “warning
” property. This is rarely needed directly, but it is used by new
.
getTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> m Text Source #
Get the value of the “warning
” property.
When overloading is enabled, this is equivalent to
get
tlsPassword #warning
setTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> Text -> m () Source #
Set the value of the “warning
” property.
When overloading is enabled, this is equivalent to
set
tlsPassword [ #warning:=
value ]