Class Index | File Index

Classes


Class ASN1HEX

ASN.1 DER encoded hexadecimal string utility class
Defined in: asn1hex-1.1.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ASN.1 DER encoded hexadecimal string utility class
Method Summary
Method Attributes Method Name and Description
<static>  
ASN1HEX.getByteLengthOfL_AtObj(s, pos)
get byte length for ASN.1 L(length) bytes
<static>  
ASN1HEX.getDecendantHexTLVByNthList(h, currentIndex, nthList)
get hexadecimal string of ASN.1 TLV refered by current index and nth index list.
<static>  
ASN1HEX.getDecendantHexVByNthList(h, currentIndex, nthList)
get hexadecimal string of ASN.1 V refered by current index and nth index list.
<static>  
ASN1HEX.getDecendantIndexByNthList(h, currentIndex, nthList)
get string index of nth child object of ASN.1 object refered by h, idx
<static>  
ASN1HEX.getHexOfL_AtObj(s, pos)
get hexadecimal string for ASN.1 L(length) bytes
<static>  
ASN1HEX.getHexOfTLV_AtObj(s, pos)
get hexadecimal string of ASN.1 TLV at
<static>  
ASN1HEX.getHexOfV_AtObj(s, pos)
get hexadecimal string of ASN.1 V(value)
<static>  
ASN1HEX.getIntOfL_AtObj(s, pos)
get integer value of ASN.1 length for ASN.1 data
<static>  
ASN1HEX.getNthChildIndex_AtObj(h, idx, nth)
get string index of nth child object of ASN.1 object refered by h, idx
<static>  
ASN1HEX.getPosArrayOfChildren_AtObj(s, start)
get array of indexes of child ASN.1 objects
<static>  
ASN1HEX.getPosOfNextSibling_AtObj(s, pos)
get next sibling starting index for ASN.1 object string
<static>  
ASN1HEX.getStartPosOfV_AtObj(s, pos)
get ASN.1 value starting string position for ASN.1 object refered by index 'idx'.
Class Detail
ASN1HEX()
ASN.1 DER encoded hexadecimal string utility class
Since:
jsrsasign 1.1
Method Detail
<static> ASN1HEX.getByteLengthOfL_AtObj(s, pos)
get byte length for ASN.1 L(length) bytes
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} pos
string index
Returns:
byte length for ASN.1 L(length) bytes

<static> {Number} ASN1HEX.getDecendantHexTLVByNthList(h, currentIndex, nthList)
get hexadecimal string of ASN.1 TLV refered by current index and nth index list.
Parameters:
{String} h
hexadecimal string of ASN.1 DER encoded data
{Number} currentIndex
start string index of ASN.1 object
{Array of Number} nthList
array list of nth
Since:
1.1
Returns:
{Number} hexadecimal string of ASN.1 TLV refered by nthList

<static> {Number} ASN1HEX.getDecendantHexVByNthList(h, currentIndex, nthList)
get hexadecimal string of ASN.1 V refered by current index and nth index list.
Parameters:
{String} h
hexadecimal string of ASN.1 DER encoded data
{Number} currentIndex
start string index of ASN.1 object
{Array of Number} nthList
array list of nth
Since:
1.1
Returns:
{Number} hexadecimal string of ASN.1 V refered by nthList

<static> {Number} ASN1HEX.getDecendantIndexByNthList(h, currentIndex, nthList)
get string index of nth child object of ASN.1 object refered by h, idx
The "nthList" is a index list of structured ASN.1 object
reference. Here is a sample structure and "nthList"s which
refers each objects.

SQUENCE               - [0]
  SEQUENCE            - [0, 0]
    IA5STRING 000     - [0, 0, 0]
    UTF8STRING 001    - [0, 0, 1]
  SET                 - [0, 1]
    IA5STRING 010     - [0, 1, 0]
    UTF8STRING 011    - [0, 1, 1]
Parameters:
{String} h
hexadecimal string of ASN.1 DER encoded data
{Number} currentIndex
start string index of ASN.1 object
{Array of Number} nthList
array list of nth
Since:
1.1
Returns:
{Number} string index refered by nthList

<static> {String} ASN1HEX.getHexOfL_AtObj(s, pos)
get hexadecimal string for ASN.1 L(length) bytes
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} pos
string index
Returns:
{String} hexadecimal string for ASN.1 L(length) bytes

<static> {String} ASN1HEX.getHexOfTLV_AtObj(s, pos)
get hexadecimal string of ASN.1 TLV at
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} pos
string index
Since:
1.1
Returns:
{String} hexadecimal string of ASN.1 TLV.

<static> {String} ASN1HEX.getHexOfV_AtObj(s, pos)
get hexadecimal string of ASN.1 V(value)
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} pos
string index
Returns:
{String} hexadecimal string of ASN.1 value.

<static> ASN1HEX.getIntOfL_AtObj(s, pos)
get integer value of ASN.1 length for ASN.1 data
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} pos
string index
Returns:
ASN.1 L(length) integer value

<static> {Number} ASN1HEX.getNthChildIndex_AtObj(h, idx, nth)
get string index of nth child object of ASN.1 object refered by h, idx
Parameters:
{String} h
hexadecimal string of ASN.1 DER encoded data
{Number} idx
start string index of ASN.1 object
{Number} nth
for child
Since:
1.1
Returns:
{Number} string index of nth child.

<static> {Array of Number} ASN1HEX.getPosArrayOfChildren_AtObj(s, start)
get array of indexes of child ASN.1 objects
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} start
string index of ASN.1 object
Returns:
{Array of Number} array of indexes for childen of ASN.1 objects

<static> ASN1HEX.getPosOfNextSibling_AtObj(s, pos)
get next sibling starting index for ASN.1 object string
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} pos
string index
Returns:
next sibling starting index for ASN.1 object string

<static> ASN1HEX.getStartPosOfV_AtObj(s, pos)
get ASN.1 value starting string position for ASN.1 object refered by index 'idx'.
Parameters:
{String} s
hexadecimal string of ASN.1 DER encoded data
{Number} pos
string index

© 2012 Kenji Urushima, All rights reserved
Documentation generated by JsDoc Toolkit 2.4.0