Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de la classe Identifier

Fonctions membres publiques statiques

static create ($class, $isConstructed, $tagNumber)
 
static isConstructed ($identifierOctet)
 
static isLongForm ($identifierOctet)
 
static getName ($identifier)
 
static getShortName ($identifier)
 
static getClassDescription ($identifier)
 
static getTagNumber ($identifier)
 
static isUniversalClass ($identifier)
 
static isApplicationClass ($identifier)
 
static isContextSpecificClass ($identifier)
 
static isPrivateClass ($identifier)
 

Champs de données

const CLASS_UNIVERSAL = 0x00
 
const CLASS_APPLICATION = 0x01
 
const CLASS_CONTEXT_SPECIFIC = 0x02
 
const CLASS_PRIVATE = 0x03
 
const EOC = 0x00
 
const BOOLEAN = 0x01
 
const INTEGER = 0x02
 
const BITSTRING = 0x03
 
const OCTETSTRING = 0x04
 
const NULL = 0x05
 
const OBJECT_IDENTIFIER = 0x06
 
const OBJECT_DESCRIPTOR = 0x07
 
const EXTERNAL = 0x08
 
const REAL = 0x09
 
const ENUMERATED = 0x0A
 
const EMBEDDED_PDV = 0x0B
 
const UTF8_STRING = 0x0C
 
const RELATIVE_OID = 0x0D
 
const SEQUENCE = 0x30
 
const SET = 0x31
 
const NUMERIC_STRING = 0x12
 
const PRINTABLE_STRING = 0x13
 
const T61_STRING = 0x14
 
const VIDEOTEXT_STRING = 0x15
 
const IA5_STRING = 0x16
 
const UTC_TIME = 0x17
 
const GENERALIZED_TIME = 0x18
 
const GRAPHIC_STRING = 0x19
 
const VISIBLE_STRING = 0x1A
 
const GENERAL_STRING = 0x1B
 
const UNIVERSAL_STRING = 0x1C
 
const CHARACTER_STRING = 0x1D
 
const BMP_STRING = 0x1E
 
const LONG_FORM = 0x1F
 
const IS_CONSTRUCTED = 0x20
 

Fonctions membres privées statiques

static makeNumeric ($identifierOctet)
 

Description détaillée

The Identifier encodes the ASN.1 tag (class and number) of the type of a data value.

Every identifier whose number is in the range 0 to 30 has the following structure:

Bits: 8 7 6 5 4 3 2 1 | Class | P/C | Tag number | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bits 8 and 7 define the class of this type ( Universal, Application, Context-specific or Private). Bit 6 encoded whether this type is primitive or constructed The remaining bits 5 - 1 encode the tag number

Documentation des fonctions membres

◆ create()

static create (   $class,
  $isConstructed,
  $tagNumber 
)
static

Creates an identifier. Short form identifiers are returned as integers for BC, long form identifiers will be returned as a string of octets.

Paramètres
int$class
bool$isConstructed
int$tagNumber
Exceptions
Exceptionif the given arguments are invalid
Renvoie
int|string

Références $class.

Référencé par ExplicitlyTaggedObject\getIdentifier().

◆ getClassDescription()

static getClassDescription (   $identifier)
static

Returns a textual description of the information encoded in a given identifier octet.

The first three (most significant) bytes are evaluated to determine if this is a constructed or primitive type and if it is either universal, application, context-specific or private.

Example: Constructed context-specific Primitive universal

Paramètres
int | string$identifier
Renvoie
string

◆ getName()

static getName (   $identifier)
static

Return the name of the mapped ASN.1 type with a preceding "ASN.1 ".

Example: ASN.1 Octet String

Voir également
Identifier::getShortName()
Paramètres
int | string$identifier
Renvoie
string

Référencé par AbstractTime\__construct(), AbstractString\checkString(), ASNObject\getTypeName(), et ASNObject\parseIdentifier().

◆ getShortName()

static getShortName (   $identifier)
static

Return the short version of the type name.

If the given identifier octet can be mapped to a known universal type this will return its name. Else Identifier::getClassDescription() is used to retrieve information about the identifier.

Voir également
Identifier::getName()
Identifier::getClassDescription()
Paramètres
int | string$identifier
Renvoie
string

Référencé par ExplicitlyTaggedObject\__toString().

◆ getTagNumber()

static getTagNumber (   $identifier)
static
Paramètres
int | string$identifier
Renvoie
int

Références Base128\decode().

Référencé par ExplicitlyTaggedObject\fromBinary().

◆ isApplicationClass()

static isApplicationClass (   $identifier)
static

◆ isConstructed()

static isConstructed (   $identifierOctet)
static

◆ isContextSpecificClass()

static isContextSpecificClass (   $identifier)
static

◆ isLongForm()

static isLongForm (   $identifierOctet)
static

◆ isPrivateClass()

static isPrivateClass (   $identifier)
static

◆ isUniversalClass()

static isUniversalClass (   $identifier)
static

◆ makeNumeric()

static makeNumeric (   $identifierOctet)
staticprivate

Documentation des champs

◆ BITSTRING

const BITSTRING = 0x03

◆ BMP_STRING

const BMP_STRING = 0x1E

◆ BOOLEAN

const BOOLEAN = 0x01

◆ CHARACTER_STRING

const CHARACTER_STRING = 0x1D

◆ CLASS_APPLICATION

const CLASS_APPLICATION = 0x01

◆ CLASS_CONTEXT_SPECIFIC

const CLASS_CONTEXT_SPECIFIC = 0x02

◆ CLASS_PRIVATE

const CLASS_PRIVATE = 0x03

◆ CLASS_UNIVERSAL

const CLASS_UNIVERSAL = 0x00

◆ EMBEDDED_PDV

const EMBEDDED_PDV = 0x0B

◆ ENUMERATED

const ENUMERATED = 0x0A

◆ EOC

const EOC = 0x00

◆ EXTERNAL

const EXTERNAL = 0x08

◆ GENERAL_STRING

const GENERAL_STRING = 0x1B

◆ GENERALIZED_TIME

const GENERALIZED_TIME = 0x18

◆ GRAPHIC_STRING

const GRAPHIC_STRING = 0x19

◆ IA5_STRING

const IA5_STRING = 0x16

◆ INTEGER

const INTEGER = 0x02

◆ IS_CONSTRUCTED

const IS_CONSTRUCTED = 0x20

◆ LONG_FORM

const LONG_FORM = 0x1F

◆ NULL

const NULL = 0x05

◆ NUMERIC_STRING

const NUMERIC_STRING = 0x12

◆ OBJECT_DESCRIPTOR

const OBJECT_DESCRIPTOR = 0x07

◆ OBJECT_IDENTIFIER

const OBJECT_IDENTIFIER = 0x06

◆ OCTETSTRING

◆ PRINTABLE_STRING

const PRINTABLE_STRING = 0x13

◆ REAL

const REAL = 0x09

◆ RELATIVE_OID

◆ SEQUENCE

◆ SET

const SET = 0x31

Référencé par ASNObject\fromBinary(), et Set\getType().

◆ T61_STRING

const T61_STRING = 0x14

◆ UNIVERSAL_STRING

const UNIVERSAL_STRING = 0x1C

◆ UTC_TIME

const UTC_TIME = 0x17

◆ UTF8_STRING

const UTF8_STRING = 0x0C

◆ VIDEOTEXT_STRING

const VIDEOTEXT_STRING = 0x15

◆ VISIBLE_STRING

const VISIBLE_STRING = 0x1A

La documentation de cette classe a été générée à partir du fichier suivant :