UNPKG

@wildboar/pki-stub

Version:
30 lines (29 loc) 1.1 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { ScopeRestriction } from "../AuthenticationFramework/ScopeRestriction.ta"; /** * @summary ScopeRestrictions * @description * * ### ASN.1 Definition: * * ```asn1 * ScopeRestrictions ::= SEQUENCE OF ScopeRestriction * ``` */ export declare type ScopeRestrictions = ScopeRestriction[]; /** * @summary Decodes an ASN.1 element into a(n) ScopeRestrictions * @function * @param {_Element} el The element being decoded. * @returns {ScopeRestrictions} The decoded data structure. */ export declare function _decode_ScopeRestrictions(el: _Element): ScopeRestrictions; /** * @summary Encodes a(n) ScopeRestrictions 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 ScopeRestrictions, encoded as an ASN.1 Element. */ export declare function _encode_ScopeRestrictions(value: ScopeRestrictions, elGetter: $.ASN1Encoder<ScopeRestrictions>): _Element;