SetaPDF_Signer_Ocsp_CertId Helper class to create and decode CertID structures.

File: /SetaPDF v2/Signer/Ocsp/CertId.php

Class hierarchy

Summary

Properties

$_certId

The CertId ASN.1 structure.


Static Methods

create()

public static SetaPDF_Signer_Ocsp_CertId::create (
Certificate $certificate, Certificate $issuerCertificate [, string $hashAlgorithm = SetaPDF_Signer_Digest::SHA_1 ]
): SetaPDF_Signer_Ocsp_CertId

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

Parameters
$certificate : Certificate
 
$issuerCertificate : Certificate
 
$hashAlgorithm : string
 
Exceptions

Throws SetaPDF_Signer_Exception


Methods

__construct()

The constructor.

Parameters
$certId : SetaPDF_Signer_Asn1_Element

The CertId ASN.1 element.

equals()

Check if this CertId value is equal to another instance.

Parameters
$certId : SetaPDF_Signer_Ocsp_CertId
 

get()

Get the CertId ASN.1 element.