import { ASN1Element as _Element, OPTIONAL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { SimpleCredentials_password } from "../DirectoryAbstractService/SimpleCredentials-password.ta.mjs"; import { SimpleCredentials_validity } from "../DirectoryAbstractService/SimpleCredentials-validity.ta.mjs"; import { DistinguishedName } from "../InformationFramework/DistinguishedName.ta.mjs"; /** * @summary SimpleCredentials * @description * * ### ASN.1 Definition: * * ```asn1 * SimpleCredentials ::= SEQUENCE { * name [0] DistinguishedName, * validity [1] SET { * time1 [0] CHOICE { * utc UTCTime, * gt GeneralizedTime} OPTIONAL, * time2 [1] CHOICE { * utc UTCTime, * gt GeneralizedTime} OPTIONAL, * random1 [2] BIT STRING OPTIONAL, * random2 [3] BIT STRING OPTIONAL} OPTIONAL, * password [2] CHOICE { * unprotected OCTET STRING, * protected HASH{OCTET STRING}, * ..., * userPwd [0] UserPwd } OPTIONAL } * ``` * */ export declare class SimpleCredentials { /** * @summary `name`. * @public * @readonly */ readonly name: DistinguishedName; /** * @summary `validity`. * @public * @readonly */ readonly validity?: OPTIONAL; /** * @summary `password`. * @public * @readonly */ readonly password?: OPTIONAL; constructor( /** * @summary `name`. * @public * @readonly */ name: DistinguishedName, /** * @summary `validity`. * @public * @readonly */ validity?: OPTIONAL, /** * @summary `password`. * @public * @readonly */ password?: OPTIONAL); /** * @summary Restructures an object into a SimpleCredentials * @description * * This takes an `object` and converts it to a `SimpleCredentials`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `SimpleCredentials`. * @returns {SimpleCredentials} */ static _from_object(_o: { [_K in keyof SimpleCredentials]: SimpleCredentials[_K]; }): SimpleCredentials; } /** * @summary The Leading Root Component Types of SimpleCredentials * @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_SimpleCredentials: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of SimpleCredentials * @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_SimpleCredentials: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of SimpleCredentials * @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_SimpleCredentials: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) SimpleCredentials * @function * @param {_Element} el The element being decoded. * @returns {SimpleCredentials} The decoded data structure. */ export declare function _decode_SimpleCredentials(el: _Element): SimpleCredentials; /** * @summary Encodes a(n) SimpleCredentials 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 SimpleCredentials, encoded as an ASN.1 Element. */ export declare function _encode_SimpleCredentials(value: SimpleCredentials, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=SimpleCredentials.ta.d.mts.map