jdk/src/share/classes/sun/security/provider/certpath/OCSPResponse.java
changeset 10336 0bb1999251f8
parent 7040 659824c2a550
child 12860 9ffbd4e43413
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 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
    24  */
    24  */
    25 
    25 
    26 package sun.security.provider.certpath;
    26 package sun.security.provider.certpath;
    27 
    27 
    28 import java.io.*;
    28 import java.io.*;
    29 import java.math.BigInteger;
       
    30 import java.security.*;
    29 import java.security.*;
    31 import java.security.cert.CertificateException;
    30 import java.security.cert.CertificateException;
    32 import java.security.cert.CertificateParsingException;
    31 import java.security.cert.CertificateParsingException;
    33 import java.security.cert.CertPathValidatorException;
    32 import java.security.cert.CertPathValidatorException;
    34 import java.security.cert.CRLReason;
    33 import java.security.cert.CRLReason;
   204         }
   203         }
   205 
   204 
   206         // responseType
   205         // responseType
   207         derIn = tmp.data;
   206         derIn = tmp.data;
   208         ObjectIdentifier responseType = derIn.getOID();
   207         ObjectIdentifier responseType = derIn.getOID();
   209         if (responseType.equals(OCSP_BASIC_RESPONSE_OID)) {
   208         if (responseType.equals((Object)OCSP_BASIC_RESPONSE_OID)) {
   210             if (DEBUG != null) {
   209             if (DEBUG != null) {
   211                 DEBUG.println("OCSP response type: basic");
   210                 DEBUG.println("OCSP response type: basic");
   212             }
   211             }
   213         } else {
   212         } else {
   214             if (DEBUG != null) {
   213             if (DEBUG != null) {
   299                     Extension responseExtension
   298                     Extension responseExtension
   300                         = new Extension(responseExtDer[i]);
   299                         = new Extension(responseExtDer[i]);
   301                     if (DEBUG != null) {
   300                     if (DEBUG != null) {
   302                         DEBUG.println("OCSP extension: " + responseExtension);
   301                         DEBUG.println("OCSP extension: " + responseExtension);
   303                     }
   302                     }
   304                     if (responseExtension.getExtensionId().equals(
   303                     if (responseExtension.getExtensionId().equals((Object)
   305                         OCSP_NONCE_EXTENSION_OID)) {
   304                         OCSP_NONCE_EXTENSION_OID)) {
   306                         /*
   305                         /*
   307                         ocspNonce =
   306                         ocspNonce =
   308                             responseExtension[i].getExtensionValue();
   307                             responseExtension[i].getExtensionValue();
   309                          */
   308                          */