Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Holds a password used in TLS.
- newtype TlsPassword = TlsPassword (ManagedPtr TlsPassword)
- class GObject o => IsTlsPassword o
- toTlsPassword :: (MonadIO m, IsTlsPassword o) => o -> m TlsPassword
- noTlsPassword :: Maybe 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 -> Word8 -> Int64 -> m ()
- tlsPasswordSetValueFull :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> Word8 -> Int64 -> Maybe DestroyNotify -> m ()
- tlsPasswordSetWarning :: (HasCallStack, MonadIO m, IsTlsPassword a) => a -> Text -> m ()
- constructTlsPasswordDescription :: IsTlsPassword o => Text -> IO (GValueConstruct o)
- getTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> m Text
- setTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> Text -> m ()
- constructTlsPasswordFlags :: IsTlsPassword o => [TlsPasswordFlags] -> IO (GValueConstruct o)
- getTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> m [TlsPasswordFlags]
- setTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> [TlsPasswordFlags] -> m ()
- constructTlsPasswordWarning :: IsTlsPassword o => Text -> IO (GValueConstruct o)
- getTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> m Text
- setTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> Text -> m ()
Exported types
newtype TlsPassword Source #
class GObject o => IsTlsPassword o Source #
toTlsPassword :: (MonadIO m, IsTlsPassword o) => o -> m TlsPassword Source #
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 |
|
-> Word8 |
|
-> Int64 |
|
-> 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 |
|
-> Word8 |
|
-> Int64 |
|
-> 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
constructTlsPasswordDescription :: IsTlsPassword o => Text -> IO (GValueConstruct o) Source #
getTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> m Text Source #
setTlsPasswordDescription :: (MonadIO m, IsTlsPassword o) => o -> Text -> m () Source #
flags
constructTlsPasswordFlags :: IsTlsPassword o => [TlsPasswordFlags] -> IO (GValueConstruct o) Source #
getTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> m [TlsPasswordFlags] Source #
setTlsPasswordFlags :: (MonadIO m, IsTlsPassword o) => o -> [TlsPasswordFlags] -> m () Source #
warning
constructTlsPasswordWarning :: IsTlsPassword o => Text -> IO (GValueConstruct o) Source #
getTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> m Text Source #
setTlsPasswordWarning :: (MonadIO m, IsTlsPassword o) => o -> Text -> m () Source #