Jcat.Engine

g GObject.Object GObject.Object Jcat.Engine Jcat.Engine GObject.Object->Jcat.Engine

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

add_public_key_raw (blob)

get_kind ()

get_method ()

pubkey_sign (blob, cert, privkey, flags)

pubkey_verify (blob, blob_signature, flags)

self_sign (blob, flags)

self_verify (blob, blob_signature, flags)

Virtual Methods

Inherited:

GObject.Object (7)

do_add_public_key (filename)

do_add_public_key_raw (blob)

do_pubkey_sign (blob, cert, privkey, flags)

do_pubkey_verify (blob, blob_signature, flags)

do_self_sign (blob, flags)

do_self_verify (blob, blob_signature, flags)

do_setup ()

Properties

Name

Type

Flags

Short Description

context

Jcat.Context

r/w/co

kind

int

r/w/co

method

int

r/w/co

verify-kind

int

d/r

deprecated

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Jcat.Engine(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Jcat.EngineClass

add_public_key_raw(blob)
Parameters:

blob (GLib.Bytes) – GLib.Bytes

Raises:

GLib.Error

Returns:

%

Return type:

bool

Adds a public key manually.

New in version 0.1.9.

get_kind()
Returns:

Jcat.BlobKind, e.g. Jcat.BlobKind.SHA256

Return type:

Jcat.BlobKind

Gets the blob kind.

New in version 0.1.3.

get_method()
Returns:

Jcat.BlobMethod, e.g. Jcat.BlobMethod.SIGNATURE

Return type:

Jcat.BlobMethod

Gets the verification method.

New in version 0.1.3.

pubkey_sign(blob, cert, privkey, flags)
Parameters:
Raises:

GLib.Error

Returns:

Jcat.Blob, or None for failed

Return type:

Jcat.Blob

Signs a chunk of data.

New in version 0.1.0.

pubkey_verify(blob, blob_signature, flags)
Parameters:
Raises:

GLib.Error

Returns:

Jcat.Result, or None for failed

Return type:

Jcat.Result

Verifies a chunk of data.

New in version 0.1.0.

self_sign(blob, flags)
Parameters:
Raises:

GLib.Error

Returns:

Jcat.Blob, or None for failed

Return type:

Jcat.Blob

Signs a chunk of data.

New in version 0.1.0.

self_verify(blob, blob_signature, flags)
Parameters:
Raises:

GLib.Error

Returns:

Jcat.Result, or None for failed

Return type:

Jcat.Result

Verifies a chunk of data.

New in version 0.1.0.

do_add_public_key(filename) virtual
Parameters:

filename (str) –

Return type:

bool

do_add_public_key_raw(blob) virtual
Parameters:

blob (GLib.Bytes) – GLib.Bytes

Returns:

%

Return type:

bool

Adds a public key manually.

New in version 0.1.9.

do_pubkey_sign(blob, cert, privkey, flags) virtual
Parameters:
Returns:

Jcat.Blob, or None for failed

Return type:

Jcat.Blob

Signs a chunk of data.

New in version 0.1.0.

do_pubkey_verify(blob, blob_signature, flags) virtual
Parameters:
Returns:

Jcat.Result, or None for failed

Return type:

Jcat.Result

Verifies a chunk of data.

New in version 0.1.0.

do_self_sign(blob, flags) virtual
Parameters:
Returns:

Jcat.Blob, or None for failed

Return type:

Jcat.Blob

Signs a chunk of data.

New in version 0.1.0.

do_self_verify(blob, blob_signature, flags) virtual
Parameters:
Returns:

Jcat.Result, or None for failed

Return type:

Jcat.Result

Verifies a chunk of data.

New in version 0.1.0.

do_setup() virtual
Return type:

bool

Property Details

Jcat.Engine.props.context
Name:

context

Type:

Jcat.Context

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Jcat.Engine.props.kind
Name:

kind

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Jcat.Engine.props.method
Name:

method

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Jcat.Engine.props.verify_kind
Name:

verify-kind

Type:

int

Default Value:

0

Flags:

DEPRECATED, READABLE

Deprecated since version ???.