@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
199 lines • 5.62 kB
text/typescript
import { OPTIONAL, BOOLEAN, ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { Version } from "../PKI-Stub/Version.ta.mjs";
import { AvlSerialNumber } from "../PKI-Stub/AvlSerialNumber.ta.mjs";
import { AlgorithmIdentifier } from "../PKI-Stub/AlgorithmIdentifier.ta.mjs";
import { Name } from "../PKI-Stub/Name.ta.mjs";
import { TBSCertAVL_entries_Item } from "../PKI-Stub/TBSCertAVL-entries-Item.ta.mjs";
import { Extensions } from "../PKI-Stub/Extensions.ta.mjs";
/**
* @summary TBSCertAVL
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* TBSCertAVL ::= SEQUENCE {
* version [0] IMPLICIT Version DEFAULT v1,
* serialNumber AvlSerialNumber OPTIONAL,
* signature AlgorithmIdentifier {{SupportedAlgorithms}},
* issuer Name,
* constrained BOOLEAN,
* entries SEQUENCE (SIZE (1..MAX)) OF SEQUENCE {
* idType CHOICE {
* certIdentifier [0] PKCertIdentifier,
* entityGroup DistinguishedName, -- only for constrained = FALSE
* ... },
* scope [0] IMPLICIT ScopeRestrictions OPTIONAL,
* entryExtensions [1] IMPLICIT Extensions OPTIONAL,
* ... },
* ...,
* ...,
* avlExtensions Extensions OPTIONAL }
* ```
*
*/
export declare class TBSCertAVL {
/**
* @summary `version`.
* @public
* @readonly
*/
readonly version: OPTIONAL<Version>;
/**
* @summary `serialNumber`.
* @public
* @readonly
*/
readonly serialNumber: OPTIONAL<AvlSerialNumber>;
/**
* @summary `signature`.
* @public
* @readonly
*/
readonly signature: AlgorithmIdentifier;
/**
* @summary `issuer`.
* @public
* @readonly
*/
readonly issuer: Name;
/**
* @summary `constrained`.
* @public
* @readonly
*/
readonly constrained: BOOLEAN;
/**
* @summary `entries`.
* @public
* @readonly
*/
readonly entries: TBSCertAVL_entries_Item[];
/**
* @summary Extensions that are not recognized.
* @public
* @readonly
*/
readonly _unrecognizedExtensionsList: _Element[];
/**
* @summary `avlExtensions`.
* @public
* @readonly
*/
readonly avlExtensions?: OPTIONAL<Extensions>;
constructor(
/**
* @summary `version`.
* @public
* @readonly
*/
version: OPTIONAL<Version>,
/**
* @summary `serialNumber`.
* @public
* @readonly
*/
serialNumber: OPTIONAL<AvlSerialNumber>,
/**
* @summary `signature`.
* @public
* @readonly
*/
signature: AlgorithmIdentifier,
/**
* @summary `issuer`.
* @public
* @readonly
*/
issuer: Name,
/**
* @summary `constrained`.
* @public
* @readonly
*/
constrained: BOOLEAN,
/**
* @summary `entries`.
* @public
* @readonly
*/
entries: TBSCertAVL_entries_Item[],
/**
* @summary Extensions that are not recognized.
* @public
* @readonly
*/
_unrecognizedExtensionsList?: _Element[],
/**
* @summary `avlExtensions`.
* @public
* @readonly
*/
avlExtensions?: OPTIONAL<Extensions>);
/**
* @summary Restructures an object into a TBSCertAVL
* @description
*
* This takes an `object` and converts it to a `TBSCertAVL`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `TBSCertAVL`.
* @returns {TBSCertAVL}
*/
static _from_object(_o: {
[_K in keyof TBSCertAVL]: TBSCertAVL[_K];
}): TBSCertAVL;
/**
* @summary Getter that returns the default value for `version`.
* @public
* @static
* @method
*/
static get _default_value_for_version(): Version;
}
/**
* @summary The Leading Root Component Types of TBSCertAVL
* @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_TBSCertAVL: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of TBSCertAVL
* @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_TBSCertAVL: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of TBSCertAVL
* @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_TBSCertAVL: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) TBSCertAVL
* @function
* @param {_Element} el The element being decoded.
* @returns {TBSCertAVL} The decoded data structure.
*/
export declare function _decode_TBSCertAVL(el: _Element): TBSCertAVL;
/**
* @summary Encodes a(n) TBSCertAVL 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 TBSCertAVL, encoded as an ASN.1 Element.
*/
export declare function _encode_TBSCertAVL(value: TBSCertAVL): _Element;
//# sourceMappingURL=TBSCertAVL.ta.d.mts.map