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
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
public const string SetaPDF_Signer_X509_Extension_ExtendedKeyUsage::PURPOSE_EMAIL_PROTECTION = '1.3.6.1.5.5.7.3.4'
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
public const string SetaPDF_Signer_X509_Extension_ExtendedKeyUsage::PURPOSE_TIME_STAMPING = '1.3.6.1.5.5.7.3.8'
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
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
): SetaPDF_Signer_X509_Extension_AuthorityInformationAccess|SetaPDF_Signer_X509_Extension_AuthorityKeyIdentifier|SetaPDF_Signer_X509_Extension_BasicConstraints|SetaPDF_Signer_X509_Extension_CrlDisributionPoint|SetaPDF_Signer_X509_Extension_ExtendedKeyUsage|SetaPDF_Signer_X509_Extension_Extension|SetaPDF_Signer_X509_Extension_KeyUsage|SetaPDF_Signer_X509_Extension_OcspNoCheck|SetaPDF_Signer_X509_Extension_SubjectKeyIdentifierCreate 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
getExtensionValue()
public SetaPDF_Signer_X509_Extension_Extension::getExtensionValue (
void
): SetaPDF_Signer_Asn1_ElementGet the extensions value.