@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
127 lines (126 loc) • 3.86 kB
TypeScript
import { OPTIONAL, OBJECT_IDENTIFIER, ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/**
* @summary AlgorithmWithInvoke
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* AlgorithmWithInvoke{ALGORITHM:SupportedAlgorithms} ::= SEQUENCE {
* algorithm ALGORITHM.&id({SupportedAlgorithms}),
* parameters [0] ALGORITHM.&Type({SupportedAlgorithms}{@algorithm}) OPTIONAL,
* dynamParms [1] ALGORITHM.&DynParms({SupportedAlgorithms}{@algorithm}) OPTIONAL,
* ... }
* ```
*
* @class
*/
export declare class AlgorithmWithInvoke {
/**
* @summary `algorithm`.
* @public
* @readonly
*/
readonly algorithm: OBJECT_IDENTIFIER;
/**
* @summary `parameters`.
* @public
* @readonly
*/
readonly parameters?: OPTIONAL<_Element>;
/**
* @summary `dynamParms`.
* @public
* @readonly
*/
readonly dynamParms?: OPTIONAL<_Element>;
/**
* @summary Extensions that are not recognized.
* @public
* @readonly
*/
readonly _unrecognizedExtensionsList: _Element[];
constructor(
/**
* @summary `algorithm`.
* @public
* @readonly
*/
algorithm: OBJECT_IDENTIFIER,
/**
* @summary `parameters`.
* @public
* @readonly
*/
parameters?: OPTIONAL<_Element>,
/**
* @summary `dynamParms`.
* @public
* @readonly
*/
dynamParms?: OPTIONAL<_Element>,
/**
* @summary Extensions that are not recognized.
* @public
* @readonly
*/
_unrecognizedExtensionsList?: _Element[]);
/**
* @summary Restructures an object into a AlgorithmWithInvoke
* @description
*
* This takes an `object` and converts it to a `AlgorithmWithInvoke`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `AlgorithmWithInvoke`.
* @returns {AlgorithmWithInvoke}
*/
static _from_object(_o: {
[_K in keyof AlgorithmWithInvoke]: AlgorithmWithInvoke[_K];
}): AlgorithmWithInvoke;
}
/**
* @summary The Leading Root Component Types of AlgorithmWithInvoke
* @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_AlgorithmWithInvoke: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of AlgorithmWithInvoke
* @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_AlgorithmWithInvoke: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of AlgorithmWithInvoke
* @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_AlgorithmWithInvoke: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) AlgorithmWithInvoke
* @function
* @param {_Element} el The element being decoded.
* @returns {AlgorithmWithInvoke} The decoded data structure.
*/
export declare function _decode_AlgorithmWithInvoke(el: _Element): AlgorithmWithInvoke;
/**
* @summary Encodes a(n) AlgorithmWithInvoke 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 AlgorithmWithInvoke, encoded as an ASN.1 Element.
*/
export declare function _encode_AlgorithmWithInvoke(value: AlgorithmWithInvoke, elGetter: $.ASN1Encoder<AlgorithmWithInvoke>): _Element;