SecureBlackbox 2020 Kotlin 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
Int

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

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

Exportable
Boolean

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

HashAlgorithm
String?

Specifies the hash algorithm used in the signature.

KeyExpirationTime
Int

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

LegacyFormat
Boolean

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
Boolean

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
Boolean

Specifies whether the signature can be revoked.

Revocation
Boolean

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
Boolean

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

TextSignature
Boolean

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

TrustAmount
Int

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
Int

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
Boolean

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
Int

Indicates the signature version.

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

Constructors

public constructor()

Creates an empty PGPSignature object.

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