setasign\SetaPDF2\Signer\X509\Extension

BasicConstraints Class representing the X509 Basic Constraints extension.

File: /SetaPDF v2/Signer/X509/Extension/BasicConstraints.php
Old class name (alias): \SetaPDF_Signer_X509_Extension_BasicConstraints

Class hierarchy

Summary

Constants

OID

public const string 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

protected string Extension::$_oid

The extension OID.


Static Methods


Methods

__construct()

The constructor.

Parameters
$extension : \SetaPDF_Signer_Asn1_Element
 

getExtensionValue()

Get the extensions value.

Exceptions

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

getOid()

public Extension::getOid (
void
): string

Get the OID.

getPathLengthConstraint()

public BasicConstraints::getPathLengthConstraint (
void
): false|int

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

Exceptions

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

isCa()

public BasicConstraints::isCa (
void
): bool

Get the cA value.

Exceptions

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

isCritical()

public Extension::isCritical (
void
): bool

Get the critical flag.