SetaPDF_Signer_X509_Extension_AuthorityKeyIdentifier Class representing the X509 Authority key identifier extension.
File: /SetaPDF v2/Signer/X509/Extension/AuthorityKeyIdentifier.php
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 }
$_oid
protected string SetaPDF_Signer_X509_Extension_Extension::$_oid
The extension OID.
Static Methods
create()
public static SetaPDF_Signer_X509_Extension_Extension::create (
SetaPDF_Signer_Asn1_Element $extension
): Create an extension instance.
Parameters
- $extension : SetaPDF_Signer_Asn1_Element
Methods
__construct()
public SetaPDF_Signer_X509_Extension_Extension::__construct (
SetaPDF_Signer_Asn1_Element $extension
)The constructor.
Parameters
- $extension : SetaPDF_Signer_Asn1_Element
getAuthorityCertificateIssuer()
public SetaPDF_Signer_X509_Extension_AuthorityKeyIdentifier::getAuthorityCertificateIssuer (
void
): Get authority certificate issuer name.
Exceptions
getAuthorityCertificateSerialNumber()
public SetaPDF_Signer_X509_Extension_AuthorityKeyIdentifier::getAuthorityCertificateSerialNumber (
[ $hex = true ]
): Get authority certificate serial number.
Parameters
- $hex
Whether the return value should be hex encoded or not.
Exceptions
getKeyIdentifier()
Get the key identifier.
Parameters
- $hex
Whether the return value should be hex encoded or not.