@wildboar/pc
Version:
Trusted Computing Group Platform Certificate ASN.1 data structures in TypeScript
129 lines • 4.43 kB
text/typescript
import { OPTIONAL, ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { ComponentIdentifier } from "../PlatformCertificateProfile/ComponentIdentifier.ta.mjs";
import { URIReference } from "../PlatformCertificateProfile/URIReference.ta.mjs";
import { Properties } from "../PlatformCertificateProfile/Properties.ta.mjs";
/**
* @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 }
* ```
*
*/
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 The element being encoded.
* @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;
//# sourceMappingURL=PlatformConfiguration.ta.d.mts.map