SetaPDF_Signer_X509_Extension_BasicConstraints Class representing the X509 Basic Constraints extension.

File: /SetaPDF v2/Signer/X509/Extension/BasicConstraints.php

Class hierarchy

Summary

Constants

OID

public const string SetaPDF_Signer_X509_Extension_BasicConstraints::OID = '2.5.29.19'

Extension OID.


Properties

$_extension

The extension element.

Extension ::= SEQUENCE { extnID OBJECT IDENTIFIER, critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING -- contains the DER encoding of an ASN.1 value -- corresponding to the extension type identified -- by extnID }

$_oid

The extension OID.


Static Methods

create()

public static SetaPDF_Signer_X509_Extension_Extension::create (): AuthorityInformationAccess|AuthorityKeyIdentifier|BasicConstraints|CrlDisributionPoint|ExtendedKeyUsage|SetaPDF_Signer_X509_Extension_Extension|KeyUsage|OcspNoCheck|SubjectKeyIdentifier

Create an extension instance.

Parameters
$extension : SetaPDF_Signer_Asn1_Element
 

Methods

__construct()

getExtensionValue()

getOid()

Get the OID.

getPathLengthConstraint()

Get the maximum number of CA certificates that may follow this certificate in a certification path.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

isCa()

Get the cA value.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

isCritical()

Get the critical flag.