UNPKG

@wildboar/pki-stub

Version:
47 lines 2.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._encode_ScopeRestrictions = exports._decode_ScopeRestrictions = void 0; const $ = require("asn1-ts/dist/node/functional"); const ScopeRestriction_ta_1 = require("../AuthenticationFramework/ScopeRestriction.ta"); /* END_OF_SYMBOL_DEFINITION ScopeRestrictions */ /* START_OF_SYMBOL_DEFINITION _cached_decoder_for_ScopeRestrictions */ let _cached_decoder_for_ScopeRestrictions = null; /* END_OF_SYMBOL_DEFINITION _cached_decoder_for_ScopeRestrictions */ /* START_OF_SYMBOL_DEFINITION _decode_ScopeRestrictions */ /** * @summary Decodes an ASN.1 element into a(n) ScopeRestrictions * @function * @param {_Element} el The element being decoded. * @returns {ScopeRestrictions} The decoded data structure. */ function _decode_ScopeRestrictions(el) { if (!_cached_decoder_for_ScopeRestrictions) { _cached_decoder_for_ScopeRestrictions = $._decodeSequenceOf(() => ScopeRestriction_ta_1._decode_ScopeRestriction); } return _cached_decoder_for_ScopeRestrictions(el); } exports._decode_ScopeRestrictions = _decode_ScopeRestrictions; /* END_OF_SYMBOL_DEFINITION _decode_ScopeRestrictions */ /* START_OF_SYMBOL_DEFINITION _cached_encoder_for_ScopeRestrictions */ let _cached_encoder_for_ScopeRestrictions = null; /* END_OF_SYMBOL_DEFINITION _cached_encoder_for_ScopeRestrictions */ /* START_OF_SYMBOL_DEFINITION _encode_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. */ function _encode_ScopeRestrictions(value, elGetter) { if (!_cached_encoder_for_ScopeRestrictions) { _cached_encoder_for_ScopeRestrictions = $._encodeSequenceOf(() => ScopeRestriction_ta_1._encode_ScopeRestriction, $.BER); } return _cached_encoder_for_ScopeRestrictions(value, elGetter); } exports._encode_ScopeRestrictions = _encode_ScopeRestrictions; /* END_OF_SYMBOL_DEFINITION _encode_ScopeRestrictions */ /* eslint-enable */ //# sourceMappingURL=ScopeRestrictions.ta.js.map