/** * Returns the list of request controls configured for this client. * * @param cookie to add to the dir sync control or null * * @return search request controls */ private RequestControl[] createRequestControls(final byte[] cookie) { return new RequestControl[] { new DirSyncControl(dirSyncFlags, cookie, maxAttributeCount, true), new ExtendedDnControl(extendedDnFlag), new ShowDeletedControl(), }; } }
/** * Returns the list of request controls configured for this client. * * @param cookie to add to the dir sync control or null * * @return search request controls */ private RequestControl[] createRequestControls(final byte[] cookie) { return new RequestControl[] { new DirSyncControl(dirSyncFlags, cookie, maxAttributeCount, true), new ExtendedDnControl(extendedDnFlag), new ShowDeletedControl(), }; } }
/** * Returns the list of request controls configured for this client. * * @param cookie to add to the dir sync control or null * * @return search request controls */ private RequestControl[] createRequestControls(final byte[] cookie) { return new RequestControl[] { new DirSyncControl(dirSyncFlags, cookie, maxAttributeCount, true), new ExtendedDnControl(extendedDnFlag), new ShowDeletedControl(), }; } }
/** * Extended DN control test data. * * @return response test data */ @DataProvider(name = "request") public Object[][] createData() { return new Object[][] { // standard format // BER: 30:03:02:01:01: new Object[] { LdapUtils.base64Decode("MAMCAQE="), new ExtendedDnControl(), }, // hexadecimal format // BER: 30:03:02:01:00 new Object[] { LdapUtils.base64Decode("MAMCAQA="), new ExtendedDnControl(ExtendedDnControl.Flag.HEXADECIMAL), }, }; }