michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: /** michael@0: * This represents an ASN.1 object, michael@0: * where ASN.1 is "Abstract Syntax Notation number One". michael@0: * michael@0: * The additional state information carried in this interface michael@0: * makes it fit for being used as the data structure michael@0: * when working with visual reprenstation of ASN.1 objects michael@0: * in a human user interface, like in a tree widget michael@0: * where open/close state of nodes must be remembered. michael@0: */ michael@0: [scriptable, uuid(ba8bf582-1dd1-11b2-898c-f40246bc9a63)] michael@0: interface nsIASN1Object : nsISupports { michael@0: michael@0: /** michael@0: * Identifiers for the possible types of object. michael@0: */ michael@0: const unsigned long ASN1_END_CONTENTS = 0; michael@0: const unsigned long ASN1_BOOLEAN = 1; michael@0: const unsigned long ASN1_INTEGER = 2; michael@0: const unsigned long ASN1_BIT_STRING = 3; michael@0: const unsigned long ASN1_OCTET_STRING = 4; michael@0: const unsigned long ASN1_NULL = 5; michael@0: const unsigned long ASN1_OBJECT_ID = 6; michael@0: const unsigned long ASN1_ENUMERATED = 10; michael@0: const unsigned long ASN1_UTF8_STRING = 12; michael@0: const unsigned long ASN1_SEQUENCE = 16; michael@0: const unsigned long ASN1_SET = 17; michael@0: const unsigned long ASN1_PRINTABLE_STRING = 19; michael@0: const unsigned long ASN1_T61_STRING = 20; michael@0: const unsigned long ASN1_IA5_STRING = 22; michael@0: const unsigned long ASN1_UTC_TIME = 23; michael@0: const unsigned long ASN1_GEN_TIME = 24; michael@0: const unsigned long ASN1_VISIBLE_STRING = 26; michael@0: const unsigned long ASN1_UNIVERSAL_STRING = 28; michael@0: const unsigned long ASN1_BMP_STRING = 30; michael@0: const unsigned long ASN1_HIGH_TAG_NUMBER = 31; michael@0: const unsigned long ASN1_CONTEXT_SPECIFIC = 32; michael@0: const unsigned long ASN1_APPLICATION = 33; michael@0: const unsigned long ASN1_PRIVATE = 34; michael@0: michael@0: /** michael@0: * "type" will be equal to one of the defined object identifiers. michael@0: */ michael@0: attribute unsigned long type; michael@0: michael@0: michael@0: /** michael@0: * This contains a tag as explained in ASN.1 standards documents. michael@0: */ michael@0: attribute unsigned long tag; michael@0: michael@0: /** michael@0: * "displayName" contains a human readable explanatory label. michael@0: */ michael@0: attribute AString displayName; michael@0: michael@0: /** michael@0: * "displayValue" contains the human readable value. michael@0: */ michael@0: attribute AString displayValue; michael@0: }; michael@0: