public class HttpTimestamper extends java.lang.Object implements Timestamper
| Constructor and Description |
|---|
HttpTimestamper(java.net.URI tsaURI)
Creates a timestamper that connects to the specified TSA.
|
| Modifier and Type | Method and Description |
|---|---|
TSResponse |
generateTimestamp(TSRequest tsQuery)
Connects to the TSA and requests a timestamp.
|
public HttpTimestamper(java.net.URI tsaURI)
tsaURI - The location of the TSA. It must be an HTTP or HTTPS URI.java.lang.IllegalArgumentException - if tsaURI is not an HTTP or HTTPS URIpublic TSResponse generateTimestamp(TSRequest tsQuery) throws java.io.IOException
generateTimestamp in interface TimestampertsQuery - The timestamp query.java.io.IOException - The exception is thrown if a problem occurs while
communicating with the TSA.