pdftools_sdk.signature_validation.certificate
Classes
|
A X.509 certificate |
- class pdftools_sdk.signature_validation.certificate.Certificate(handle)[source]
Bases:
_NativeObject
A X.509 certificate
- property subject_name: str | None
The name (subject) of the certificate
The common name (CN) of the person or authority that owns the certificate.
- Returns:
Optional[str]
- property subject: str
The subject of the certificate
The distinguished name (DN) of the person or authority that owns the certificate. Formatted according to RFC 4514.
- Returns:
str
- property issuer_name: str | None
The name of the certificate’s issuer (CA)
The common name (CN) of the certificate authority (CA) that issued the certificate.
- Returns:
Optional[str]
- property not_after: datetime
The date after which the certificate is no longer valid.
- Returns:
datetime
- property not_before: datetime
The date on which the certificate becomes valid.
- Returns:
datetime
- property fingerprint: str
The certificate’s fingerprint
The hex string representation of the certificate’s SHA-1 digest.
- Returns:
str
- property raw_data: List[int]
The raw data of the certificate as a byte array
- Returns:
List[int]
- property source: DataSource
Source of the certificate
- Returns:
pdftools_sdk.signature_validation.data_source.DataSource
- property validity: ConstraintResult
Whether the certificate is valid according to the validation profile used
- Returns:
pdftools_sdk.signature_validation.constraint_result.ConstraintResult