| 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 |
GI.WebKit2.Structs.Credential
Description
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.
Constructors
| Credential (ManagedPtr Credential) |
Instances
| BoxedObject Credential Source # | |
Methods boxedType :: Credential -> IO GType # | |
noCredential :: Maybe Credential Source #
A convenience alias for Nothing :: Maybe Credential.
Methods
copy
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Credential |
|
| -> m Credential | Returns: A copy of passed in |
Make a copy of the Credential.
Since: 2.2
free
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Credential |
|
| -> m () |
Free the Credential.
Since: 2.2
getPassword
credentialGetPassword Source #
Arguments
| :: (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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Credential |
|
| -> m CredentialPersistence | Returns: The |
Get the persistence mode currently held by this Credential.
Since: 2.2
getUsername
credentialGetUsername Source #
Arguments
| :: (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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Credential |
|
| -> m Bool | Returns: |
Determine whether this credential has a password stored.
Since: 2.2
new
Arguments
| :: (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