UNPKG

@wildboar/pkcs

Version:
39 lines 1.61 kB
import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AuthKeyAttributes } from "../PKCS-15/AuthKeyAttributes.ta.mjs"; import { CertBasedAuthenticationAttributes } from "../PKCS-15/CertBasedAuthenticationAttributes.ta.mjs"; /** * @summary ExternalAuthObjectAttributes * @description * * ### ASN.1 Definition: * * ```asn1 * ExternalAuthObjectAttributes ::= CHOICE { * authKeyAttributes AuthKeyAttributes, * certBasedAttributes [0] CertBasedAuthenticationAttributes, * ... -- For future extensions * } * ``` */ export type ExternalAuthObjectAttributes = { authKeyAttributes: AuthKeyAttributes; } | { certBasedAttributes: CertBasedAuthenticationAttributes; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) ExternalAuthObjectAttributes * @function * @param {_Element} el The element being decoded. * @returns {ExternalAuthObjectAttributes} The decoded data structure. */ export declare function _decode_ExternalAuthObjectAttributes(el: _Element): ExternalAuthObjectAttributes; /** * @summary Encodes a(n) ExternalAuthObjectAttributes 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 ExternalAuthObjectAttributes, encoded as an ASN.1 Element. */ export declare function _encode_ExternalAuthObjectAttributes(value: ExternalAuthObjectAttributes, elGetter: $.ASN1Encoder<ExternalAuthObjectAttributes>): _Element; //# sourceMappingURL=ExternalAuthObjectAttributes.ta.d.mts.map