/** * 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(), }; } }
/** * @param berValue to decode. * @param expected dir sync control to test. * * @throws Exception On test failure. */ @Test(groups = {"control"}, dataProvider = "request-response") public void decode(final byte[] berValue, final DirSyncControl expected) throws Exception { final DirSyncControl actual = new DirSyncControl(expected.getCriticality()); actual.decode(berValue); Assert.assertEquals(actual, expected); } }
new DirSyncControl(), }, "AAAAAAAAW88BAAAAAADzox7OKwdpRIu4ZIWpCoubAQAAAAAAAAABAAAAAAAAAPOj" + "Hs4rB2lEi7hkhakKi5vyzwEAAAAAAA=="), new DirSyncControl( null, new byte[] { new DirSyncControl( new DirSyncControl.Flag[] {DirSyncControl.Flag.ANCESTORS_FIRST_ORDER, }, null, "AAAAAAAAAFvPAQAAAAAA86MezisHaUSLuGSFqQqLmwEAAAAAAAAAAQAAAAAAAADz" + "ox7OKwdpRIu4ZIWpCoubCdABAAAAAAA="), new DirSyncControl( new DirSyncControl.Flag[] {DirSyncControl.Flag.ANCESTORS_FIRST_ORDER, }, new byte[] {
} else if (DirSyncControl.OID.equals(responseControl.getOid())) { final AdDirSync c = (AdDirSync) responseControl; ctl = new DirSyncControl( new DirSyncControl.Flag[] {DirSyncControl.Flag.valueOf(AdDirSyncFlag.getBitmask(c.getFlags())), }, c.getCookie(),
ctl = new DirSyncControl(critical); ctl.decode(encoded); break;
ctl = new DirSyncControl(critical); ctl.decode(encoded); break;
ctl = new DirSyncControl(critical); ctl.decode(encoded); break;