gi-gio-2.0.14: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.TlsPassword

Contents

Description

Holds a password used in TLS.

Synopsis

Exported types

Methods

getDescription

tlsPasswordGetDescription Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> m Text

Returns: The description of the password.

Get a description string about what the password will be used for.

Since: 2.30

getFlags

tlsPasswordGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> m [TlsPasswordFlags]

Returns: The flags about the password.

Get flags about the password.

Since: 2.30

getWarning

tlsPasswordGetWarning Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> 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

tlsPasswordNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [TlsPasswordFlags]

flags: the password flags

-> Text

description: description of what the password is for

-> m TlsPassword

Returns: The newly allocated password object

Create a new TlsPassword object.

setDescription

tlsPasswordSetDescription Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> Text

description: The description of the password

-> m () 

Set a description string about what the password will be used for.

Since: 2.30

setFlags

tlsPasswordSetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> [TlsPasswordFlags]

flags: The flags about the password

-> m () 

Set flags about the password.

Since: 2.30

setValue

tlsPasswordSetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> Word8

value: the new password value

-> Int64

length: the length of the password, or -1

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> Word8

value: the value for the password

-> Int64

length: the length of the password, or -1

-> Maybe DestroyNotify

destroy: a function to use to free the password.

-> 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 #

Arguments

:: (HasCallStack, MonadIO m, IsTlsPassword a) 
=> a

password: a TlsPassword object

-> Text

warning: The user readable warning

-> 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

flags

warning