[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/fgrosse/phpasn1/lib/ASN1/ -> Identifier.php (summary)

(no description)

File Size: 339 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Identifier:: (12 methods):
  create()
  isConstructed()
  isLongForm()
  getName()
  getShortName()
  getClassDescription()
  getTagNumber()
  isUniversalClass()
  isApplicationClass()
  isContextSpecificClass()
  isPrivateClass()
  makeNumeric()


Class: Identifier  - X-Ref

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
create($class, $isConstructed, $tagNumber)   X-Ref
Creates an identifier. Short form identifiers are returned as integers
for BC, long form identifiers will be returned as a string of octets.

param: int $class
param: bool $isConstructed
param: int $tagNumber
return: int|string

isConstructed($identifierOctet)   X-Ref
No description

isLongForm($identifierOctet)   X-Ref
No description

getName($identifier)   X-Ref
Return the name of the mapped ASN.1 type with a preceding "ASN.1 ".

Example: ASN.1 Octet String

param: int|string $identifier
return: string

getShortName($identifier)   X-Ref
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.

param: int|string $identifier
return: string

getClassDescription($identifier)   X-Ref
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: int|string $identifier
return: string

getTagNumber($identifier)   X-Ref

param: int|string $identifier
return: int

isUniversalClass($identifier)   X-Ref
No description

isApplicationClass($identifier)   X-Ref
No description

isContextSpecificClass($identifier)   X-Ref
No description

isPrivateClass($identifier)   X-Ref
No description

makeNumeric($identifierOctet)   X-Ref
No description



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer