|
Oracle Security Developer Tools PKI SDK TSP Java API Reference 11g (11.1.1) E10677-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
oracle.security.crypto.tsp.HttpTSPRequest
public class HttpTSPRequest
Implementation of TSP over HTTP. Before using the method getResponse, be sure to have set the right content handler factory in your application by calling:
URLConnection.setContentHandlerFactory(new TSPContentHandlerFactory());
The method GET is not implemented. Therefore, a Http TSP request read from an input stream must use the POST method.
This class should be used on the client side to send TSP request to a server over HTTP.
| Constructor Summary | |
|---|---|
HttpTSPRequest(java.io.InputStream is)Creates a new Http TSP Request by reading an input stream. |
|
HttpTSPRequest(TSPTimeStampReq request, java.net.URL url)Creates a new Http TSP request. |
|
| Method Summary | |
|---|---|
TSPTimeStampReq |
getRequest()Gets the TSP request of this http request. |
TSPTimeStampResp |
getResponse()Gets the TSP Message from the server. |
static TSPTimeStampResp |
getResponse(TSPTimeStampReq request, java.net.HttpURLConnection conn)Gets the TSP Message 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 HttpTSPRequest(TSPTimeStampReq 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 http.url - The url to use to connect to the TSA server.
public HttpTSPRequest(java.io.InputStream is)
throws java.io.IOException
is - The InputStream from which the HttpTSPRequest will be created.java.io.IOException - An I/O error occurred or the input encoding is incorrect.oracle.security.crypto.tsp.InvalidHttpRequestException - If the request is not an TSP Message over http.| Method Detail |
|---|
public static TSPTimeStampResp getResponse(TSPTimeStampReq 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 TSPTimeStampResp getResponse()
throws java.io.IOException
java.io.IOExceptionpublic TSPTimeStampReq getRequest()
|
Oracle Security Developer Tools PKI SDK TSP Java API Reference 11g (11.1.1) E10677-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||