setasign\SetaPDF2\Signer\Ocsp

CertId Helper class to create and decode CertID structures.

File: /SetaPDF v2/Signer/Ocsp/CertId.php
Old class name (alias): \SetaPDF_Signer_Ocsp_CertId

Class hierarchy

Summary

Properties

$_certId

The CertId ASN.1 structure.


Static Methods

create()

public static CertId::create (): static

Static function to create an CertId ASN.1 structure by a certificate, issuer certificate and hash algorithm.

Parameters
$certificate : \SetaPDF_Signer_X509_Certificate
 
$issuerCertificate : \SetaPDF_Signer_X509_Certificate
 
$hashAlgorithm : string
 
Exceptions

Throws \setasign\SetaPDF2\Signer\Exception


Methods

__construct()

The constructor.

Parameters
$certId : \SetaPDF_Signer_Asn1_Element

The CertId ASN.1 element.

equals()

public CertId::equals (): bool

Check if this CertId value is equal to another instance.

Parameters
$certId : \SetaPDF_Signer_Ocsp_CertId
 

get()

Get the CertId ASN.1 element.