SetaPDF_Signer_X509_Extension_KeyUsage Class representing the X509 Key usage extension.

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

Class hierarchy

Summary

Constants

OID

public const string SetaPDF_Signer_X509_Extension_KeyUsage::OID = '2.5.29.15'

Extension OID.

PURPOSE_CRL_SIGN

Purspose OID.

PURPOSE_DATA_ENCIPHERMENT

Purspose OID.

PURPOSE_DECIPHER_ONLY

Purspose OID.

PURPOSE_DIGITAL_SIGNATURE

Purspose OID.

PURPOSE_ENCIPHER_ONLY

Purspose OID.

PURPOSE_KEY_AGREEMENT

Purspose OID.

PURPOSE_KEY_CERT_SIGN

Purspose OID.

PURPOSE_KEY_ENCIPHERMENT

Purspose OID.

PURPOSE_NON_REPUDIATION

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 value.

Exceptions

Throws SetaPDF_Signer_Asn1_Exception

is()

public SetaPDF_Signer_X509_Extension_KeyUsage::is (
int $purpose
): bool

Checks the purpose by a given OID.

Parameters
$purpose : int
 
Exceptions

Throws SetaPDF_Signer_Asn1_Exception

isCritical()

Get the critical flag.