SecureBlackbox 2020 macOS Edition

Questions / Feedback?

PGPSignature Type

A container for PGP signature properties.

Remarks

PGPSignature contains details and validation information for a PGP signature.

Fields

certificationType
PGPCertificationTypes

Specifies the type of a UserID signature.

pctGeneric0Generic certification of a User ID and Public Key packet. The issuer of this certification does not make any particular assertion as to how well the certifier has checked that the owner of the key is in fact the person described by the User ID. By default user certifications use Generic type.
pctPersona1Persona certification of a User ID and Public Key packet. The issuer of this certification has not done any verification of the claim that the owner of this key corresponds to the specified User ID.
pctCasual2Casual certification of a User ID and a Public Key packet. The issuer of this certification has done some casual verification of the claim of identity.
pctPositive3Positive certification of a User ID and a Public Key packet. The issuer of this certification has done substantial verification of the claim of identity.

creationTime
String

The time when the signature was created, in Universal Coordinated Time (UTC).

expirationTime
Int32

Specifies signature expiration time, in seconds since its creation time (CreationTime).

Ths property set to 0 indicates that the signature never expires.

exportable
Bool

Specifies whether a certification signature is "exportable", meaning it can be used by entities other than the signature's issuer.

handle
Int64

Allows to get or set a 'handle', a unique identifier of the underlying property object. Use this property to assign objects of the same type in a quicker manner, without copying them fieldwise.

When you pass a handle of one object to another, the source object is copied to the destination rather than assigned. It is safe to get rid of the original object after such operation.

  pdfSigner.setSigningCertHandle(certMgr.getCertHandle());

hashAlgorithm
String

Specifies the hash algorithm used in the signature.

keyExpirationTime
Int32

The number of seconds after which the signed key will expire.

legacyFormat
Bool

Indicates whether signature uses PGP 2.6.x-compatible packet format.

The signature is fully compatible with the 'old' format only if it has version 3, uses MD5 hash algorithm, RSA public key algorithm, and its key length is not greater than 1024 bits.

policyURL
String

Contains the URL of the signature policy.

primaryUserID
Bool

Indicates whether the UserID covered by the signature is the main user id for this key.

reasonForRevocation
String

Describes the reason why the key or the certificate was revoked.

revocable
Bool

Specifies whether the signature can be revoked.

revocation
Bool

Indicates whether or not the signature is a revocation signature.

signatureClass
PGPSignatureClasses

Indicates the signature class.

pscDocument0Signature over binary file
pscTextDocument1Signature over text
pscStandalone2A standalone signature
pscUIDGeneric3User certification signature
pscUIDPersona4User certification signature (persona)
pscUIDCasual5User certification signature (casual)
pscUIDPositive6User certification signature (positive)
pscSubkeyBinding7Subkey binding signature
pscPublicKeyBinding8Public key binding signature
pscDirectKey9Direct signature over a public key
pscKeyRevocation10Key revocation
pscSubkeyRevocation11Subkey revocation
pscCertRevocation12User revocation
pscTimestamp13Timestamp signature
pscThirdParty14Third-party signature
pscNotSpecified15Signature type not provided

signerKeyID
String

Indicates the KeyID of the signing key.

signerUserID
String

Indicates the UserID associated with the signing key.

strictlyValid
Bool

Returns True if this signature is valid in a strict way (no compatibility relaxations).

textSignature
Bool

Indicates whether or not the signature is made over a text document.

trustAmount
Int32

Specifies the amount of trust assigned by this signature.

Specifies the amount of trust, in range 0-255, interpreted such that values less than 120 indicate partial trust and values of 120 or greater indicate complete trust.

trustLevel
Int32

The trust level assigned by this signature.

Level 1 means that the signed key is asserted to be a valid trusted introducer, with the 2nd octet of the body specifying the degree of trust. Level n means that the signed key is asserted to be trusted to issue level (n-1)-trust signatures.

validated
Bool

Whether the signature has been validated.

validity
PGPSignatureValidities

Provides the validity status of the signature if the signature has been validated.

psvValid0Valid
psvCorrupted1Corrupted
psvUnknownAlgorithm2Unknown signature algorithm
psvNoKey3Signing key not found, cannot verify
psvUnknown4"Unknown

version
Int32

Indicates the signature version.

RFC 4880 defines two versions for PGP signatures: 3 and 4.

Constructors

public init()

Creates an empty PGPSignature object.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 macOS Edition - Version 20.0 [Build 8165]