@wildboar/pc
Version:
Trusted Computing Group Platform Certificate ASN.1 data structures in TypeScript
133 lines (132 loc) • 4.75 kB
TypeScript
import { OPTIONAL, ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { ComponentIdentifier } from "../PlatformCertificateProfile/ComponentIdentifier.ta";
export { ComponentIdentifier, _decode_ComponentIdentifier, _encode_ComponentIdentifier } from "../PlatformCertificateProfile/ComponentIdentifier.ta";
import { URIReference } from "../PlatformCertificateProfile/URIReference.ta";
export { URIReference, _decode_URIReference, _encode_URIReference } from "../PlatformCertificateProfile/URIReference.ta";
import { Properties } from "../PlatformCertificateProfile/Properties.ta";
export { Properties, _decode_Properties, _encode_Properties } from "../PlatformCertificateProfile/Properties.ta";
/**
* @summary PlatformConfiguration
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* PlatformConfiguration ::= SEQUENCE {
* componentIdentifiers [0] IMPLICIT SEQUENCE (SIZE(1..MAX)) OF ComponentIdentifier OPTIONAL,
* componentIdentifiersUri [1] IMPLICIT URIReference OPTIONAL,
* platformProperties [2] IMPLICIT SEQUENCE (SIZE(1..MAX)) OF Properties OPTIONAL,
* platformPropertiesUri [3] IMPLICIT URIReference OPTIONAL }
* ```
*
* @class
*/
export declare class PlatformConfiguration {
/**
* @summary `componentIdentifiers`.
* @public
* @readonly
*/
readonly componentIdentifiers: OPTIONAL<ComponentIdentifier[]>;
/**
* @summary `componentIdentifiersUri`.
* @public
* @readonly
*/
readonly componentIdentifiersUri: OPTIONAL<URIReference>;
/**
* @summary `platformProperties`.
* @public
* @readonly
*/
readonly platformProperties: OPTIONAL<Properties[]>;
/**
* @summary `platformPropertiesUri`.
* @public
* @readonly
*/
readonly platformPropertiesUri: OPTIONAL<URIReference>;
constructor(
/**
* @summary `componentIdentifiers`.
* @public
* @readonly
*/
componentIdentifiers: OPTIONAL<ComponentIdentifier[]>,
/**
* @summary `componentIdentifiersUri`.
* @public
* @readonly
*/
componentIdentifiersUri: OPTIONAL<URIReference>,
/**
* @summary `platformProperties`.
* @public
* @readonly
*/
platformProperties: OPTIONAL<Properties[]>,
/**
* @summary `platformPropertiesUri`.
* @public
* @readonly
*/
platformPropertiesUri: OPTIONAL<URIReference>);
/**
* @summary Restructures an object into a PlatformConfiguration
* @description
*
* This takes an `object` and converts it to a `PlatformConfiguration`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `PlatformConfiguration`.
* @returns {PlatformConfiguration}
*/
static _from_object(_o: {
[_K in keyof (PlatformConfiguration)]: (PlatformConfiguration)[_K];
}): PlatformConfiguration;
}
/**
* @summary The Leading Root Component Types of PlatformConfiguration
* @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_PlatformConfiguration: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of PlatformConfiguration
* @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_PlatformConfiguration: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of PlatformConfiguration
* @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_PlatformConfiguration: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) PlatformConfiguration
* @function
* @param {_Element} el The element being decoded.
* @returns {PlatformConfiguration} The decoded data structure.
*/
export declare function _decode_PlatformConfiguration(el: _Element): PlatformConfiguration;
/**
* @summary Encodes a(n) PlatformConfiguration 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 PlatformConfiguration, encoded as an ASN.1 Element.
*/
export declare function _encode_PlatformConfiguration(value: PlatformConfiguration, elGetter: $.ASN1Encoder<PlatformConfiguration>): _Element;