@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
101 lines • 3.07 kB
text/typescript
import { ASN1Element as _Element, OBJECT_IDENTIFIER } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
/**
* @summary PKCS12Attribute
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* PKCS12Attribute ::= SEQUENCE {
* attrId ATTRIBUTE.&id ({PKCS12AttrSet}),
* attrValues SET OF ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId})
* }
* ```
*
*/
export declare class PKCS12Attribute {
/**
* @summary `attrId`.
* @public
* @readonly
*/
readonly attrId: OBJECT_IDENTIFIER;
/**
* @summary `attrValues`.
* @public
* @readonly
*/
readonly attrValues: _Element[];
constructor(
/**
* @summary `attrId`.
* @public
* @readonly
*/
attrId: OBJECT_IDENTIFIER,
/**
* @summary `attrValues`.
* @public
* @readonly
*/
attrValues: _Element[]);
/**
* @summary Restructures an object into a PKCS12Attribute
* @description
*
* This takes an `object` and converts it to a `PKCS12Attribute`.
*
* @public
* @static
* @method
* @param {Object} _o An object having all of the keys and values of a `PKCS12Attribute`.
* @returns {PKCS12Attribute}
*/
static _from_object(_o: {
[_K in keyof PKCS12Attribute]: PKCS12Attribute[_K];
}): PKCS12Attribute;
}
/**
* @summary The Leading Root Component Types of PKCS12Attribute
* @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_PKCS12Attribute: $.ComponentSpec[];
/**
* @summary The Trailing Root Component Types of PKCS12Attribute
* @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_PKCS12Attribute: $.ComponentSpec[];
/**
* @summary The Extension Addition Component Types of PKCS12Attribute
* @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_PKCS12Attribute: $.ComponentSpec[];
/**
* @summary Decodes an ASN.1 element into a(n) PKCS12Attribute
* @function
* @param {_Element} el The element being decoded.
* @returns {PKCS12Attribute} The decoded data structure.
*/
export declare function _decode_PKCS12Attribute(el: _Element): PKCS12Attribute;
/**
* @summary Encodes a(n) PKCS12Attribute 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 PKCS12Attribute, encoded as an ASN.1 Element.
*/
export declare function _encode_PKCS12Attribute(value: PKCS12Attribute, elGetter: $.ASN1Encoder<PKCS12Attribute>): _Element;
//# sourceMappingURL=PKCS12Attribute.ta.d.mts.map