gi-webkit2-4.0.28: WebKit2 bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.WebKit2.Structs.Credential

Description

No description available in the introspection data.

Synopsis

Exported types

newtype Credential Source #

Memory-managed wrapper type.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

copy, free, hasPassword.

Getters

getCertificate, getPassword, getPersistence, getUsername.

Setters

None.

copy

credentialCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Credential

credential: a Credential

-> m Credential

Returns: A copy of passed in Credential

Make a copy of the Credential.

Since: 2.2

free

credentialFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Credential

credential: A Credential

-> m () 

Free the Credential.

Since: 2.2

getCertificate

credentialGetCertificate Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Credential

credential: a Credential

-> m TlsCertificate

Returns: a TlsCertificate, or Nothing

Get the certificate currently held by this Credential.

Since: 2.34

getPassword

credentialGetPassword Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Credential

credential: a Credential

-> m Text

Returns: The password stored in the Credential.

Get the password currently held by this Credential.

Since: 2.2

getPersistence

credentialGetPersistence Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Credential

credential: a Credential

-> m CredentialPersistence

Returns: The CredentialPersistence stored in the Credential.

Get the persistence mode currently held by this Credential.

Since: 2.2

getUsername

credentialGetUsername Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Credential

credential: a Credential

-> m Text

Returns: The username stored in the Credential.

Get the username currently held by this Credential.

Since: 2.2

hasPassword

credentialHasPassword Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Credential

credential: a Credential

-> m Bool

Returns: True if the credential has a password or False otherwise.

Determine whether this credential has a password stored.

Since: 2.2

new

credentialNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

username: The username for the new credential

-> Text

password: The password for the new credential

-> CredentialPersistence

persistence: The CredentialPersistence of the new credential

-> m Credential

Returns: A Credential.

Create a new credential from the provided username, password and persistence mode.

Since: 2.2

newForCertificate

credentialNewForCertificate Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> Maybe a

certificate: The TlsCertificate, or Nothing

-> CredentialPersistence

persistence: The CredentialPersistence of the new credential

-> m Credential

Returns: A Credential.

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 #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

pin: The PIN for the new credential

-> CredentialPersistence

persistence: The CredentialPersistence of the new credential

-> m Credential

Returns: A Credential.

Create a new credential from the provided PIN and persistence mode. Note that CredentialPersistencePermanent is not supported for certificate pin credentials.

Since: 2.34