Cipherpack v1.2.0-dirty
A Cryprographic Stream Processor
Public Member Functions | Public Attributes | List of all members
org.cipherpack.PackHeader Class Reference

Cipherpack header less encrypted keys or signatures as described in Cipherpack Data Stream. More...

Collaboration diagram for org.cipherpack.PackHeader:

Public Member Functions

final boolean isValid ()
 
String toString ()
 Return a string representation. More...
 
String toString (final boolean show_crypto_algos, final boolean force_all_fingerprints)
 Return a string representation. More...
 

Public Attributes

final CryptoConfig crypto_cfg
 
final byte[] plaintext_hash
 Optional hash value of the plaintext message, produced for convenience and not wired. More...
 
final String plaintext_hash_algo
 Optional hash algorithm for the plaintext message, produced for convenience and not wired. More...
 
final long plaintext_size
 Plaintext message size in bytes, zero if not determined yet. More...
 
final String plaintext_version
 Version of this plaintext message, user semantic, see Cipherpack Data Stream. More...
 
final String plaintext_version_parent
 Version of this plaintext message's preceding message, user semantic, see Cipherpack Data Stream. More...
 
final List< byte[]> recevr_fingerprints
 List of receiver's public-keys fingerprints used to encrypt the symmetric-key, see Cipherpack Data Stream. More...
 
final byte[] sender_fingerprint
 Sender's public-key fingerprint used to sign, see Cipherpack Data Stream. More...
 
final String subject
 Designated subject of message, see Cipherpack Data Stream. More...
 
final String target_path
 Designated target path for this plaintext message, see Cipherpack Data Stream. More...
 
final long ts_creation_nsec
 Creation time since Unix epoch, nanosecond component, see Cipherpack Data Stream. More...
 
final long ts_creation_sec
 Creation time since Unix epoch, second component, see Cipherpack Data Stream. More...
 
final int used_recevr_key_idx
 Index of the matching receiver's public-key fingerprint used to decrypt the symmetric-key, see Cipherpack Data Stream, -1 if not found or not decrypting. More...
 
final boolean valid
 True if packet is valid, otherwise false. More...
 

Detailed Description

Cipherpack header less encrypted keys or signatures as described in Cipherpack Data Stream.

See also
Cipherpack Overview
Cipherpack Data Stream

Definition at line 40 of file PackHeader.java.

Member Function Documentation

◆ toString() [1/2]

String org.cipherpack.PackHeader.toString ( final boolean  show_crypto_algos,
final boolean  force_all_fingerprints 
)

Return a string representation.

Parameters
show_crypto_algospass true if used crypto algos shall be shown, otherwise suppressed (default).
force_all_fingerprintsif true always show all getTermKeysFingerprint(), otherwise show only the getTermKeysFingerprint() if >= 0 (default).
Returns
string representation

Definition at line 142 of file PackHeader.java.

Here is the caller graph for this function:

◆ isValid()

final boolean org.cipherpack.PackHeader.isValid ( )

Definition at line 176 of file PackHeader.java.

Here is the caller graph for this function:

◆ toString() [2/2]

String org.cipherpack.PackHeader.toString ( )

Return a string representation.

Returns
string representation

Definition at line 183 of file PackHeader.java.

Here is the caller graph for this function:

Member Data Documentation

◆ target_path

final String org.cipherpack.PackHeader.target_path

Designated target path for this plaintext message, see Cipherpack Data Stream.

Definition at line 42 of file PackHeader.java.

◆ plaintext_size

final long org.cipherpack.PackHeader.plaintext_size

Plaintext message size in bytes, zero if not determined yet.

See Cipherpack Data Stream.

Definition at line 45 of file PackHeader.java.

◆ ts_creation_sec

final long org.cipherpack.PackHeader.ts_creation_sec

Creation time since Unix epoch, second component, see Cipherpack Data Stream.

Definition at line 48 of file PackHeader.java.

◆ ts_creation_nsec

final long org.cipherpack.PackHeader.ts_creation_nsec

Creation time since Unix epoch, nanosecond component, see Cipherpack Data Stream.

Definition at line 51 of file PackHeader.java.

◆ subject

final String org.cipherpack.PackHeader.subject

Designated subject of message, see Cipherpack Data Stream.

Definition at line 54 of file PackHeader.java.

◆ plaintext_version

final String org.cipherpack.PackHeader.plaintext_version

Version of this plaintext message, user semantic, see Cipherpack Data Stream.

Definition at line 57 of file PackHeader.java.

◆ plaintext_version_parent

final String org.cipherpack.PackHeader.plaintext_version_parent

Version of this plaintext message's preceding message, user semantic, see Cipherpack Data Stream.

Definition at line 60 of file PackHeader.java.

◆ crypto_cfg

final CryptoConfig org.cipherpack.PackHeader.crypto_cfg

Definition at line 62 of file PackHeader.java.

◆ sender_fingerprint

final byte [] org.cipherpack.PackHeader.sender_fingerprint

Sender's public-key fingerprint used to sign, see Cipherpack Data Stream.

Definition at line 65 of file PackHeader.java.

◆ recevr_fingerprints

final List<byte[]> org.cipherpack.PackHeader.recevr_fingerprints

List of receiver's public-keys fingerprints used to encrypt the symmetric-key, see Cipherpack Data Stream.

Definition at line 68 of file PackHeader.java.

◆ used_recevr_key_idx

final int org.cipherpack.PackHeader.used_recevr_key_idx

Index of the matching receiver's public-key fingerprint used to decrypt the symmetric-key, see Cipherpack Data Stream, -1 if not found or not decrypting.

Definition at line 71 of file PackHeader.java.

◆ plaintext_hash_algo

final String org.cipherpack.PackHeader.plaintext_hash_algo

Optional hash algorithm for the plaintext message, produced for convenience and not wired.

If not used, plaintext_hash_algo is empty.

Definition at line 78 of file PackHeader.java.

◆ plaintext_hash

final byte [] org.cipherpack.PackHeader.plaintext_hash

Optional hash value of the plaintext message, produced for convenience and not wired.

If not used, i.e. plaintext_hash_algo is empty, array has zero size.

Definition at line 85 of file PackHeader.java.

◆ valid

final boolean org.cipherpack.PackHeader.valid

True if packet is valid, otherwise false.

Definition at line 88 of file PackHeader.java.


The documentation for this class was generated from the following file: