@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
118 lines (117 loc) • 3.89 kB
TypeScript
import { ASN1Element as _Element, OPTIONAL } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { BuiltInDomainDefinedAttributes } from "../PkiPmiExternalDataTypes/BuiltInDomainDefinedAttributes.ta";
import { BuiltInStandardAttributes } from "../PkiPmiExternalDataTypes/BuiltInStandardAttributes.ta";
import { ExtensionAttributes } from "../PkiPmiExternalDataTypes/ExtensionAttributes.ta";
/**
* @summary ORAddress
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* ORAddress ::= SEQUENCE {
* built-in-standard-attributes BuiltInStandardAttributes,
* built-in-domain-defined-attributes BuiltInDomainDefinedAttributes OPTIONAL,
* -- see also teletex-domain-defined-attributes
* extension-attributes ExtensionAttributes OPTIONAL }
* ```
*
* @class
*/
export declare class ORAddress {
/**
* @summary `built_in_standard_attributes`.
* @public
* @readonly
*/
readonly built_in_standard_attributes: BuiltInStandardAttributes;
/**
* @summary `built_in_domain_defined_attributes`.
* @public
* @readonly
*/
readonly built_in_domain_defined_attributes?: OPTIONAL<BuiltInDomainDefinedAttributes>;
/**
* @summary `extension_attributes`.
* @public
* @readonly
*/
readonly extension_attributes?: OPTIONAL<ExtensionAttributes>;
constructor(
/**
* @summary `built_in_standard_attributes`.
* @public
* @readonly
*/
built_in_standard_attributes: BuiltInStandardAttributes,
/**
* @summary `built_in_domain_defined_attributes`.
* @public
* @readonly
*/
built_in_domain_defined_attributes?: OPTIONAL<BuiltInDomainDefinedAttributes>,
/**
* @summary `extension_attributes`.
* @public
* @readonly
*/
extension_attributes?: OPTIONAL<ExtensionAttributes>);
/**
* @summary Restructures an object into a ORAddress
* @description
*
* This takes an `object` and converts it to a `ORAddress`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `ORAddress`.
* @returns {ORAddress}
*/
static _from_object(_o: {
[_K in keyof ORAddress]: ORAddress[_K];
}): ORAddress;
}
/**
* @summary The Leading Root Component Types of ORAddress
* @description
*
* This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE.
*
* @constant
*/
export declare const _root_component_type_list_1_spec_for_ORAddress: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of ORAddress
* @description
*
* This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE.
*
* @constant
*/
export declare const _root_component_type_list_2_spec_for_ORAddress: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of ORAddress
* @description
*
* This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE.
*
* @constant
*/
export declare const _extension_additions_list_spec_for_ORAddress: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) ORAddress
* @function
* @param {_Element} el The element being decoded.
* @returns {ORAddress} The decoded data structure.
*/
export declare function _decode_ORAddress(el: _Element): ORAddress;
/**
* @summary Encodes a(n) ORAddress into an ASN.1 Element.
* @function
* @param {value} el The element being decoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The ORAddress, encoded as an ASN.1 Element.
*/
export declare function _encode_ORAddress(value: ORAddress, elGetter: $.ASN1Encoder<ORAddress>): _Element;