Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype Credential = Credential (ManagedPtr Credential)
- noCredential :: Maybe Credential
- credentialCopy :: (HasCallStack, MonadIO m) => Credential -> m Credential
- credentialFree :: (HasCallStack, MonadIO m) => Credential -> m ()
- credentialGetPassword :: (HasCallStack, MonadIO m) => Credential -> m Text
- credentialGetPersistence :: (HasCallStack, MonadIO m) => Credential -> m CredentialPersistence
- credentialGetUsername :: (HasCallStack, MonadIO m) => Credential -> m Text
- credentialHasPassword :: (HasCallStack, MonadIO m) => Credential -> m Bool
- credentialNew :: (HasCallStack, MonadIO m) => Text -> Text -> CredentialPersistence -> m Credential
Exported types
newtype Credential Source #
Memory-managed wrapper type.
Instances
BoxedObject Credential Source # | |
Defined in GI.WebKit2.Structs.Credential boxedType :: Credential -> IO GType # |
noCredential :: Maybe Credential Source #
A convenience alias for Nothing
:: Maybe
Credential
.
Methods
copy
:: (HasCallStack, MonadIO m) | |
=> Credential |
|
-> m Credential | Returns: A copy of passed in |
Make a copy of the Credential
.
Since: 2.2
free
:: (HasCallStack, MonadIO m) | |
=> Credential |
|
-> m () |
Free the Credential
.
Since: 2.2
getPassword
credentialGetPassword Source #
:: (HasCallStack, MonadIO m) | |
=> Credential |
|
-> m Text | Returns: The password stored in the |
Get the password currently held by this Credential
.
Since: 2.2
getPersistence
credentialGetPersistence Source #
:: (HasCallStack, MonadIO m) | |
=> Credential |
|
-> m CredentialPersistence | Returns: The |
Get the persistence mode currently held by this Credential
.
Since: 2.2
getUsername
credentialGetUsername Source #
:: (HasCallStack, MonadIO m) | |
=> Credential |
|
-> m Text | Returns: The username stored in the |
Get the username currently held by this Credential
.
Since: 2.2
hasPassword
credentialHasPassword Source #
:: (HasCallStack, MonadIO m) | |
=> Credential |
|
-> m Bool | Returns: |
Determine whether this credential has a password stored.
Since: 2.2
new
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> Text |
|
-> CredentialPersistence |
|
-> m Credential | Returns: A |
Create a new credential from the provided username, password and persistence mode.
Since: 2.2