import { OPTIONAL, OCTET_STRING, ASN1Element as _Element } from '@wildboar/asn1'; import * as $ from '@wildboar/asn1/functional'; import { LDAPResult_resultCode, _enum_for_LDAPResult_resultCode } from '../Lightweight-Directory-Access-Protocol-V3/LDAPResult-resultCode.ta.mjs'; import { LDAPDN } from '../Lightweight-Directory-Access-Protocol-V3/LDAPDN.ta.mjs'; import { LDAPString } from '../Lightweight-Directory-Access-Protocol-V3/LDAPString.ta.mjs'; import { Referral } from '../Lightweight-Directory-Access-Protocol-V3/Referral.ta.mjs'; /** * @summary BindResponse * @description * * ### ASN.1 Definition: * * ```asn1 * BindResponse ::= [APPLICATION 1] SEQUENCE { * COMPONENTS OF LDAPResult, * serverSaslCreds [7] OCTET STRING OPTIONAL * } * ``` * */ export declare class BindResponse { /** * @summary `resultCode`. * @public * @readonly */ readonly resultCode: LDAPResult_resultCode; /** * @summary `matchedDN`. * @public * @readonly */ readonly matchedDN: LDAPDN; /** * @summary `diagnosticMessage`. * @public * @readonly */ readonly diagnosticMessage: LDAPString; /** * @summary `referral`. * @public * @readonly */ readonly referral?: OPTIONAL; /** * @summary `serverSaslCreds`. * @public * @readonly */ readonly serverSaslCreds?: OPTIONAL; /** * @summary Extensions that are not recognized. * @public * @readonly */ readonly _unrecognizedExtensionsList: _Element[]; constructor( /** * @summary `resultCode`. * @public * @readonly */ resultCode: LDAPResult_resultCode, /** * @summary `matchedDN`. * @public * @readonly */ matchedDN: LDAPDN, /** * @summary `diagnosticMessage`. * @public * @readonly */ diagnosticMessage: LDAPString, /** * @summary `referral`. * @public * @readonly */ referral?: OPTIONAL, /** * @summary `serverSaslCreds`. * @public * @readonly */ serverSaslCreds?: OPTIONAL, /** * @summary Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a BindResponse * @description * * This takes an `object` and converts it to a `BindResponse`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `BindResponse`. * @returns {BindResponse} */ static _from_object(_o: { [_K in keyof BindResponse]: BindResponse[_K]; }): BindResponse; /** * @summary The enum used as the type of the component `resultCode` * @public * @static */ static _enum_for_resultCode: typeof _enum_for_LDAPResult_resultCode; } /** * @summary The Leading Root Component Types of BindResponse * @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_BindResponse: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of BindResponse * @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_BindResponse: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of BindResponse * @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_BindResponse: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) BindResponse * @function * @param {_Element} el The element being decoded. * @returns {BindResponse} The decoded data structure. */ export declare function _decode_BindResponse(el: _Element): BindResponse; /** * @summary Encodes a(n) BindResponse 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 BindResponse, encoded as an ASN.1 Element. */ export declare function _encode_BindResponse(value: BindResponse, elGetter: $.ASN1Encoder): _Element; //# sourceMappingURL=BindResponse.ta.d.mts.map