import { OPTIONAL, 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 LDAPResult * @description * * ### ASN.1 Definition: * * ```asn1 * LDAPResult ::= SEQUENCE { * resultCode * ENUMERATED {success(0), operationsError(1), protocolError(2), * timeLimitExceeded(3), sizeLimitExceeded(4), compareFalse(5), * compareTrue(6), authMethodNotSupported(7), * strongerAuthRequired(8), * -- 9 reserved * referral(10), adminLimitExceeded(11), * unavailableCriticalExtension(12), confidentialityRequired(13), * saslBindInProgress(14), noSuchAttribute(16), * undefinedAttributeType(17), inappropriateMatching(18), * constraintViolation(19), attributeOrValueExists(20), * invalidAttributeSyntax(21), * -- 22-31 unused * noSuchObject(32), aliasProblem(33), * invalidDNSyntax(34), * -- 35 reserved for undefined isLeaf * aliasDereferencingProblem(36), * -- 37-47 unused * inappropriateAuthentication(48), invalidCredentials(49), * insufficientAccessRights(50), busy(51), unavailable(52), * unwillingToPerform(53), * loopDetect(54), * -- 55-63 unused * namingViolation(64), objectClassViolation(65), * notAllowedOnNonLeaf(66), notAllowedOnRDN(67), * entryAlreadyExists(68), * objectClassModsProhibited(69), * -- 70 reserved for CLDAP * affectsMultipleDSAs(71), * -- 72-79 unused * other(80), ... * }, * matchedDN LDAPDN, * diagnosticMessage LDAPString, * referral [3] Referral OPTIONAL * } * ``` * */ export declare class LDAPResult { /** * @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 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 Extensions that are not recognized. * @public * @readonly */ _unrecognizedExtensionsList?: _Element[]); /** * @summary Restructures an object into a LDAPResult * @description * * This takes an `object` and converts it to a `LDAPResult`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `LDAPResult`. * @returns {LDAPResult} */ static _from_object(_o: { [_K in keyof LDAPResult]: LDAPResult[_K]; }): LDAPResult; /** * @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 LDAPResult * @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_LDAPResult: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of LDAPResult * @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_LDAPResult: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of LDAPResult * @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_LDAPResult: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) LDAPResult * @function * @param {_Element} el The element being decoded. * @returns {LDAPResult} The decoded data structure. */ export declare function _decode_LDAPResult(el: _Element): LDAPResult; /** * @summary Encodes a(n) LDAPResult 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 LDAPResult, encoded as an ASN.1 Element. */ export declare function _encode_LDAPResult(value: LDAPResult): _Element; //# sourceMappingURL=LDAPResult.ta.d.mts.map