Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Groups information used for user authentication.
Since: 2.2
Synopsis
- newtype Credential = Credential (ManagedPtr Credential)
- credentialCopy :: (HasCallStack, MonadIO m) => Credential -> m Credential
- credentialFree :: (HasCallStack, MonadIO m) => Credential -> m ()
- credentialGetCertificate :: (HasCallStack, MonadIO m) => Credential -> m TlsCertificate
- 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
- credentialNewForCertificate :: (HasCallStack, MonadIO m, IsTlsCertificate a) => Maybe a -> CredentialPersistence -> m Credential
- credentialNewForCertificatePin :: (HasCallStack, MonadIO m) => Text -> CredentialPersistence -> m Credential
Exported types
newtype Credential Source #
Memory-managed wrapper type.
Credential (ManagedPtr Credential) |
Instances
Eq Credential Source # | |
Defined in GI.WebKit.Structs.Credential (==) :: Credential -> Credential -> Bool # (/=) :: Credential -> Credential -> Bool # | |
GBoxed Credential Source # | |
Defined in GI.WebKit.Structs.Credential | |
ManagedPtrNewtype Credential Source # | |
Defined in GI.WebKit.Structs.Credential toManagedPtr :: Credential -> ManagedPtr Credential | |
TypedObject Credential Source # | |
Defined in GI.WebKit.Structs.Credential | |
HasParentTypes Credential Source # | |
Defined in GI.WebKit.Structs.Credential | |
IsGValue (Maybe Credential) Source # | Convert |
Defined in GI.WebKit.Structs.Credential gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Credential -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Credential) | |
type ParentTypes Credential Source # | |
Defined in GI.WebKit.Structs.Credential |
Methods
Click to display all available methods, including inherited ones
Methods
copy, free, hasPassword.
Getters
getCertificate, getPassword, getPersistence, getUsername.
Setters
None.
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
getCertificate
credentialGetCertificate Source #
:: (HasCallStack, MonadIO m) | |
=> Credential |
|
-> m TlsCertificate | Returns: a |
Get the certificate currently held by this Credential
.
Since: 2.34
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
newForCertificate
credentialNewForCertificate Source #
:: (HasCallStack, MonadIO m, IsTlsCertificate a) | |
=> Maybe a |
|
-> CredentialPersistence |
|
-> m Credential | Returns: A |
Create a new credential from the certificate
and persistence mode.
Note that CredentialPersistencePermanent
is not supported for certificate credentials.
Since: 2.34
newForCertificatePin
credentialNewForCertificatePin Source #
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> CredentialPersistence |
|
-> m Credential | Returns: A |
Create a new credential from the provided PIN and persistence mode.
Note that CredentialPersistencePermanent
is not supported for certificate pin credentials.
Since: 2.34