class DirSyncControl extends AbstractControl implements RequestControl, ResponseControl {

  @Override
  public byte[] encode()
  {
    final ConstructedDEREncoder se = new ConstructedDEREncoder(
      UniversalDERTag.SEQ,
      new IntegerType(BigInteger.valueOf(getFlags())),
      new IntegerType(getMaxAttributeCount()),
      new OctetStringType(getCookie() != null ? getCookie() : EMPTY_COOKIE));
    return se.encode();
  }

  public  DirSyncControl();
  public  DirSyncControl(final boolean critical);
  public  DirSyncControl(final Flag[] f);
  public  DirSyncControl(final Flag[] f, final boolean critical);
  public  DirSyncControl(final Flag[] f, final int count);
  public  DirSyncControl(final Flag[] f, final int count, final boolean critical);
  public  DirSyncControl(final Flag[] f, final byte[] value, final boolean critical);
  public  DirSyncControl(final Flag[] f, final byte[] value, final int count, final boolean critical);

}