setasign\SetaPDF2\Signer\X509\Extension

SubjectKeyIdentifier Class representing the X509 Subject key identifier extension.

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

Class hierarchy

Summary

Constants

OID

public const string SubjectKeyIdentifier::OID = '2.5.29.14'

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

getKeyIdentifier()

public SubjectKeyIdentifier::getKeyIdentifier (
bool $hex = true
): string

Get the key identifier.

Parameters
$hex : bool

Whether the return value should be hex encoded or not.

Exceptions

Throws \setasign\SetaPDF2\Signer\Asn1\Exception

getOid()

public Extension::getOid (
void
): string

Get the OID.

isCritical()

public Extension::isCritical (
void
): bool

Get the critical flag.