@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
100 lines • 3.31 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { Identifier } from "../PKCS-15/Identifier.ta.mjs";
import { KeyManagementInfo_Item_keyInfo } from "../PKCS-15/KeyManagementInfo-Item-keyInfo.ta.mjs";
/**
* @summary KeyManagementInfo_Item
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* KeyManagementInfo-Item ::= SEQUENCE { -- REMOVED_FROM_UNNESTING -- }
* ```
*
*/
export declare class KeyManagementInfo_Item {
/**
* @summary `keyId`.
* @public
* @readonly
*/
readonly keyId: Identifier;
/**
* @summary `keyInfo`.
* @public
* @readonly
*/
readonly keyInfo: KeyManagementInfo_Item_keyInfo;
constructor(
/**
* @summary `keyId`.
* @public
* @readonly
*/
keyId: Identifier,
/**
* @summary `keyInfo`.
* @public
* @readonly
*/
keyInfo: KeyManagementInfo_Item_keyInfo);
/**
* @summary Restructures an object into a KeyManagementInfo_Item
* @description
*
* This takes an `object` and converts it to a `KeyManagementInfo_Item`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `KeyManagementInfo_Item`.
* @returns {KeyManagementInfo_Item}
*/
static _from_object(_o: {
[_K in keyof KeyManagementInfo_Item]: KeyManagementInfo_Item[_K];
}): KeyManagementInfo_Item;
}
/**
* @summary The Leading Root Component Types of KeyManagementInfo_Item
* @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_KeyManagementInfo_Item: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of KeyManagementInfo_Item
* @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_KeyManagementInfo_Item: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of KeyManagementInfo_Item
* @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_KeyManagementInfo_Item: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) KeyManagementInfo_Item
* @function
* @param {_Element} el The element being decoded.
* @returns {KeyManagementInfo_Item} The decoded data structure.
*/
export declare function _decode_KeyManagementInfo_Item(el: _Element): KeyManagementInfo_Item;
/**
* @summary Encodes a(n) KeyManagementInfo_Item into an ASN.1 Element.
* @function
* @param value The element being encoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The KeyManagementInfo_Item, encoded as an ASN.1 Element.
*/
export declare function _encode_KeyManagementInfo_Item(value: KeyManagementInfo_Item, elGetter: $.ASN1Encoder<KeyManagementInfo_Item>): _Element;
//# sourceMappingURL=KeyManagementInfo-Item.ta.d.mts.map