public class HttpOCSPRequest
extends java.lang.Object
URLConnection.setContentHandlerFactory(new OCSPContentHandlerFactory());
The method GET is not implemented. Therefore, a Http OCSP Request read from an input stream must use the POST method.
| Constructor and Description | 
|---|
HttpOCSPRequest(java.io.InputStream is)
Creates a new Http OCSP Request by reading an input stream. 
 | 
HttpOCSPRequest(OCSPRequest request, java.net.URL url)
Creates a new Http OCSP request. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
OCSPRequest | 
getRequest()
Gets the request of this http request. 
 | 
OCSPResponse | 
getResponse()
Gets the OCSPResponse from the server. 
 | 
static OCSPResponse | 
getResponse(OCSPRequest request, java.net.HttpURLConnection conn)
Gets the OCSPResponse from the server using the given  
HttpURLConnection. | 
public HttpOCSPRequest(OCSPRequest request, java.net.URL url)
Note: If the URL has and HTTPS protocol specifier, you will need to call the URL.setURLStreamHandlerFactory method with a HttpsURLStreamHandlerFactory.
request - The request to send over httpurl - The url to use to connect to the OCSP server.
public HttpOCSPRequest(java.io.InputStream is)
                throws java.io.IOException
is - The InputStream from which the HttpOCSPRequest will be created.java.io.IOExceptionInvalidHttpRequestException - if the request is not an OCSP request over http.public static OCSPResponse getResponse(OCSPRequest request, java.net.HttpURLConnection conn) throws java.io.IOException
HttpURLConnection. This method should be used on the client side in a context where calling the method URL.setURLStreamHandlerFactory for HTTPS URLs is impractical.java.io.IOExceptionpublic OCSPResponse getResponse() throws java.io.IOException
java.io.IOExceptionpublic OCSPRequest getRequest()