nsIASN1Object

IID:ba8bf582-1dd1-11b2-898c-f40246bc9a63
Inherits From:nsISupports
Status:FROZEN

This represents an ASN.1 object, where ASN.1 is "Abstract Syntax Notation number One".

The additional state information carried in this interface makes it fit for being used as the data structure when working with visual reprenstation of ASN.1 objects in a human user interface, like in a tree widget where open/close state of nodes must be remembered.


Constants

Identifiers for the possible types of object.
PRUint32 ASN1_END_CONTENTS = 0
PRUint32 ASN1_BOOLEAN = 1
PRUint32 ASN1_INTEGER = 2
PRUint32 ASN1_BIT_STRING = 3
PRUint32 ASN1_OCTET_STRING = 4
PRUint32 ASN1_NULL = 5
PRUint32 ASN1_OBJECT_ID = 6
PRUint32 ASN1_ENUMERATED = 10
PRUint32 ASN1_UTF8_STRING = 12
PRUint32 ASN1_SEQUENCE = 16
PRUint32 ASN1_SET = 17
PRUint32 ASN1_PRINTABLE_STRING = 19
PRUint32 ASN1_T61_STRING = 20
PRUint32 ASN1_IA5_STRING = 22
PRUint32 ASN1_UTC_TIME = 23
PRUint32 ASN1_GEN_TIME = 24
PRUint32 ASN1_VISIBLE_STRING = 26
PRUint32 ASN1_UNIVERSAL_STRING = 28
PRUint32 ASN1_BMP_STRING = 30
PRUint32 ASN1_HIGH_TAG_NUMBER = 31
PRUint32 ASN1_CONTEXT_SPECIFIC = 32
PRUint32 ASN1_APPLICATION = 33
PRUint32 ASN1_PRIVATE = 34

Properties

AString displayName

"displayName" contains a human readable explanatory label.

AString displayValue

"displayValue" contains the human readable value.

PRUint32 tag

This contains a tag as explained in ASN.1 standards documents.

PRUint32 type

"type" will be equal to one of the defined object identifiers.


References

This interface is the type of the following properties:

nsIX509Cert.ASN1Structure

This interface is passed as an argument to the following methods:

nsIASN1Tree.loadASN1Structure

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com