jdk/src/share/classes/java/security/cert/X509CRLSelector.java
changeset 10336 0bb1999251f8
parent 5506 202f599c92aa
child 10419 12c063b39232
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   630             try {
   630             try {
   631                 DerInputStream in = new DerInputStream(crlNumExtVal);
   631                 DerInputStream in = new DerInputStream(crlNumExtVal);
   632                 byte[] encoded = in.getOctetString();
   632                 byte[] encoded = in.getOctetString();
   633                 CRLNumberExtension crlNumExt =
   633                 CRLNumberExtension crlNumExt =
   634                     new CRLNumberExtension(Boolean.FALSE, encoded);
   634                     new CRLNumberExtension(Boolean.FALSE, encoded);
   635                 crlNum = (BigInteger)crlNumExt.get(CRLNumberExtension.NUMBER);
   635                 crlNum = crlNumExt.get(CRLNumberExtension.NUMBER);
   636             } catch (IOException ex) {
   636             } catch (IOException ex) {
   637                 if (debug != null) {
   637                 if (debug != null) {
   638                     debug.println("X509CRLSelector.match: exception in "
   638                     debug.println("X509CRLSelector.match: exception in "
   639                         + "decoding CRL number");
   639                         + "decoding CRL number");
   640                 }
   640                 }