|
Oracle Security Developer Tools PKI SDK OCSP Java API Reference 10g (10.1.4.0.1) B28168-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.ocsp.HttpOCSPRequest
Implementation of OCSP over HTTP for requests. Before using the method getResponse, be sure to have set the right content handler factory in your application by calling:
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 Summary | |
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. |
Method Summary | |
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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.IOException
InvalidHttpRequestException
- if the request is not an OCSP request over http.Method Detail |
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.IOException
public OCSPResponse getResponse() throws java.io.IOException
java.io.IOException
public OCSPRequest getRequest()
|
Oracle Security Developer Tools PKI SDK OCSP Java API Reference 10g (10.1.4.0.1) B28168-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |