Gck.Password

g GObject.Object GObject.Object Gio.TlsPassword Gio.TlsPassword GObject.Object->Gio.TlsPassword Gck.Password Gck.Password Gio.TlsPassword->Gck.Password

Subclasses:

None

Methods

Inherited:

Gio.TlsPassword (10), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_key ()

get_module ()

get_token ()

Virtual Methods

Inherited:

Gio.TlsPassword (3), GObject.Object (7)

Properties

Inherited:

Gio.TlsPassword (3)

Name

Type

Flags

Short Description

key

Gck.Object

r/w/co

PKCS11 Key Object

module

Gck.Module

r

PKCS11 Module

token

Gck.Slot

r/w/co

PKCS11 Token

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gck.Password(**kwargs)
Bases:

Gio.TlsPassword

Abstract:

No

Structure:

Gck.PasswordClass

Represents a password which is requested of the user.

This is used in conjuction with [class`Gio`.TlsInteraction]. GckPassword is a [class`Gio`.TlsPassword] which contains additional information about which PKCS#11 token or key the password is being requested for.

get_key()[source]
Returns:

the password is for this key, or None if not being requested for a key; must be unreferenced after use

Return type:

Gck.Object

If the password request is to unlock a PKCS#11 key, then this is the the object representing that key.

get_module()[source]
Returns:

the module that is requesting the password, which must be unreferenced after use

Return type:

Gck.Module

Get the PKCS#11 module that is requesting the password.

get_token()[source]
Returns:

the slot that contains the token, or None if not being requested for a token; must be unreferenced after use

Return type:

Gck.Slot

If the password request is to unlock a PKCS#11 token, then this is the slot containing that token.

Property Details

Gck.Password.props.key
Name:

key

Type:

Gck.Object

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The PKCS#11 key that the password is being requested for. If this is set then the Gck.Password :token property will be None

Gck.Password.props.module
Name:

module

Type:

Gck.Module

Default Value:

None

Flags:

READABLE

The PKCS#11 module that is requesting the password

Gck.Password.props.token
Name:

token

Type:

Gck.Slot

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The PKCS#11 token the password is for, if this is set then the Gck.Password :object property will be None