< prev index next >

test/sun/security/provider/X509Factory/BigCRL.java

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 7099399
  27  * @summary cannot deal with CRL file larger than 16MB

  28  * @run main/othervm -Xshare:off -Xmx1024m BigCRL
  29  */
  30 
  31 import java.io.FileInputStream;
  32 import java.math.BigInteger;
  33 import java.security.KeyStore;
  34 import java.security.cert.Certificate;
  35 import java.security.PrivateKey;
  36 import java.security.cert.X509CRLEntry;
  37 import java.util.Arrays;
  38 import java.util.Date;
  39 import sun.security.x509.*;
  40 import java.security.cert.CertificateFactory;
  41 import java.io.ByteArrayInputStream;
  42 
  43 public class BigCRL {
  44 
  45     public static void main(String[] args) throws Exception {
  46         int n = 500000;
  47         String ks = System.getProperty("test.src", ".")




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 7099399
  27  * @summary cannot deal with CRL file larger than 16MB
  28  * @modules java.base/sun.security.x509
  29  * @run main/othervm -Xshare:off -Xmx1024m BigCRL
  30  */
  31 
  32 import java.io.FileInputStream;
  33 import java.math.BigInteger;
  34 import java.security.KeyStore;
  35 import java.security.cert.Certificate;
  36 import java.security.PrivateKey;
  37 import java.security.cert.X509CRLEntry;
  38 import java.util.Arrays;
  39 import java.util.Date;
  40 import sun.security.x509.*;
  41 import java.security.cert.CertificateFactory;
  42 import java.io.ByteArrayInputStream;
  43 
  44 public class BigCRL {
  45 
  46     public static void main(String[] args) throws Exception {
  47         int n = 500000;
  48         String ks = System.getProperty("test.src", ".")


< prev index next >