SetaPDF_Signer_X509_Crl Class representing a CRL.
File: /SetaPDF v2/Signer/X509/Crl.php
CertificateList ::= SEQUENCE { tbsCertList TBSCertList, signatureAlgorithm AlgorithmIdentifier, signatureValue BIT STRING } TBSCertList ::= SEQUENCE { version Version OPTIONAL, -- if present, MUST be v2 signature AlgorithmIdentifier, issuer Name, thisUpdate Time, nextUpdate Time OPTIONAL, revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate Time, crlEntryExtensions Extensions OPTIONAL -- if present, version MUST be v2 } OPTIONAL, crlExtensions [0] EXPLICIT Extensions OPTIONAL -- if present, version MUST be v2 }
Class hierarchy
Summary
Static Properties
$usePhpseclibForRsaPss
Flag defining whether usage of phpseclib or default OpenSSL methods for RSA_PSS validation.
$verifyCallback
A callable that can be used to implement individual verification logic.
Properties
$_revokedCertificates
Cache of revoked certificates. Indexed by serial numbers (hex encoded).
Static Methods
Methods
_getTBSCertList()
get()
Get the CRL encoded as DER or PEM.
Parameters
- $format : string
getDigest()
Get the digest of the CRL.
Parameters
- $algo : string
- $raw : bool
getIssuerName()
Get the issuer name of the CRL.
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception
getNextUpdate()
getRevokedCertificates()
Get all revoked certificates.
Return Values
The index is the hex encoded serial number of the certificate. The value is an array with detailed information (currently only "revocationDate").
Exceptions
Throws SetaPDF_Signer_Exception
getSignatureAlgorithm()
Return Values
The first value holds the OID of the algorithm. The second value is the ASN.1 structure of the parameters.
Exceptions
Throws SetaPDF_Signer_Exception
getSignatureValue()
getSignedData()
Exceptions
Throws SetaPDF_Signer_Exception
getThisUpdate()
isRevoked()
verify()
Verify the signed object.
Parameters
- $signerCertificate : SetaPDF_Signer_X509_Certificate
Exceptions
Throws SetaPDF_Signer_Asn1_Exception
Throws SetaPDF_Signer_Exception