class PagedResultsControl extends AbstractControl implements RequestControl, ResponseControl {

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

  public  PagedResultsControl();
  public  PagedResultsControl(final boolean critical);
  public  PagedResultsControl(final int size);
  public  PagedResultsControl(final int size, final boolean critical);
  public  PagedResultsControl(final int size, final byte[] value, final boolean critical);

}