Jcat.Engine¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
d/r |
|
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Jcat.Engine(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_public_key_raw(blob)¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
- Raises:
- Returns:
%
- Return type:
Adds a public key manually.
New in version 0.1.9.
- get_kind()¶
- Returns:
- Return type:
Gets the blob kind.
New in version 0.1.3.
- get_method()¶
- Returns:
- Return type:
Gets the verification method.
New in version 0.1.3.
- pubkey_sign(blob, cert, privkey, flags)¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
cert (
GLib.Bytes
) –GLib.Bytes
privkey (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.SignFlags
) –Jcat.SignFlags
, e.g.Jcat.SignFlags.ADD_TIMESTAMP
- Raises:
- Returns:
- Return type:
Signs a chunk of data.
New in version 0.1.0.
- pubkey_verify(blob, blob_signature, flags)¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
blob_signature (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.VerifyFlags
) –Jcat.VerifyFlags
, e.g.Jcat.VerifyFlags.DISABLE_TIME_CHECKS
- Raises:
- Returns:
Jcat.Result
, orNone
for failed- Return type:
Verifies a chunk of data.
New in version 0.1.0.
- self_sign(blob, flags)¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.SignFlags
) –Jcat.SignFlags
, e.g.Jcat.SignFlags.ADD_TIMESTAMP
- Raises:
- Returns:
- Return type:
Signs a chunk of data.
New in version 0.1.0.
- self_verify(blob, blob_signature, flags)¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
blob_signature (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.VerifyFlags
) –Jcat.VerifyFlags
, e.g.Jcat.VerifyFlags.DISABLE_TIME_CHECKS
- Raises:
- Returns:
Jcat.Result
, orNone
for failed- Return type:
Verifies a chunk of data.
New in version 0.1.0.
- do_add_public_key_raw(blob) virtual¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
- Returns:
%
- Return type:
Adds a public key manually.
New in version 0.1.9.
- do_pubkey_sign(blob, cert, privkey, flags) virtual¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
cert (
GLib.Bytes
) –GLib.Bytes
privkey (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.SignFlags
) –Jcat.SignFlags
, e.g.Jcat.SignFlags.ADD_TIMESTAMP
- Returns:
- Return type:
Signs a chunk of data.
New in version 0.1.0.
- do_pubkey_verify(blob, blob_signature, flags) virtual¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
blob_signature (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.VerifyFlags
) –Jcat.VerifyFlags
, e.g.Jcat.VerifyFlags.DISABLE_TIME_CHECKS
- Returns:
Jcat.Result
, orNone
for failed- Return type:
Verifies a chunk of data.
New in version 0.1.0.
- do_self_sign(blob, flags) virtual¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.SignFlags
) –Jcat.SignFlags
, e.g.Jcat.SignFlags.ADD_TIMESTAMP
- Returns:
- Return type:
Signs a chunk of data.
New in version 0.1.0.
- do_self_verify(blob, blob_signature, flags) virtual¶
- Parameters:
blob (
GLib.Bytes
) –GLib.Bytes
blob_signature (
GLib.Bytes
) –GLib.Bytes
flags (
Jcat.VerifyFlags
) –Jcat.VerifyFlags
, e.g.Jcat.VerifyFlags.DISABLE_TIME_CHECKS
- Returns:
Jcat.Result
, orNone
for failed- Return type:
Verifies a chunk of data.
New in version 0.1.0.
Property Details¶
- Jcat.Engine.props.context¶
- Name:
context
- Type:
- Default Value:
- Flags:
- Jcat.Engine.props.kind¶
- Name:
kind
- Type:
- Default Value:
0
- Flags:
- Jcat.Engine.props.method¶
- Name:
method
- Type:
- Default Value:
0
- Flags:
- Jcat.Engine.props.verify_kind¶
- Name:
verify-kind
- Type:
- Default Value:
0
- Flags:
Deprecated since version ???.