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
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 }
Static Methods
create()
public static Extension::create (
\setasign\SetaPDF2\Signer\Asn1\Element $extension
): AuthorityInformationAccess|AuthorityKeyIdentifier|BasicConstraints|CrlDistributionPoint|ExtendedKeyUsage|KeyUsage|OcspNoCheck|SubjectKeyIdentifier|selfCreate an extension instance.
Parameters
- $extension : \setasign\SetaPDF2\Signer\Asn1\Element
Methods
__construct()
getKeyIdentifier()
Get the key identifier.
Parameters
- $hex : bool
Whether the return value should be hex encoded or not.