SetaPDF_Signer_X509_Extension_ExtendedKeyUsage Class representing the X509 Extended key usage extension.

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

Class hierarchy

Summary

Constants

OID

public const string SetaPDF_Signer_X509_Extension_ExtendedKeyUsage::OID = '2.5.29.37'

Extension OID.

PURPOSE_CLIENT_AUTH

public const string SetaPDF_Signer_X509_Extension_ExtendedKeyUsage::PURPOSE_CLIENT_AUTH = '1.3.6.1.5.5.7.3.2'

Purspose OID.

PURPOSE_CODE_SIGNING

public const string SetaPDF_Signer_X509_Extension_ExtendedKeyUsage::PURPOSE_CODE_SIGNING = '1.3.6.1.5.5.7.3.3'

Purspose OID.

PURPOSE_EMAIL_PROTECTION

Purspose OID.

PURPOSE_OCSP_SIGNING

public const string SetaPDF_Signer_X509_Extension_ExtendedKeyUsage::PURPOSE_OCSP_SIGNING = '1.3.6.1.5.5.7.3.9'

Purspose OID.

PURPOSE_SERVER_AUTH

public const string SetaPDF_Signer_X509_Extension_ExtendedKeyUsage::PURPOSE_SERVER_AUTH = '1.3.6.1.5.5.7.3.1'

Purspose OID.

PURPOSE_TIME_STAMPING

Purspose 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


Methods

__construct()

getExtensionValue()

getOid()

Get the OID.

getPurposes()

Get the purposes.

Return Values

The OIDs of all purposes.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

is()

Checks the purpose by a given OID.

Parameters
$oid : string
 
Exceptions

Throws SetaPDF_Signer_Asn1_Exception

isCritical()

Get the critical flag.