public class TSPServer extends java.lang.Object
TimeStampDemo.TimeStampDemo| Modifier and Type | Field and Description |
|---|---|
static iaik.asn1.ObjectID |
TSA_POLICY_ID
TSA policy id.
|
| Constructor and Description |
|---|
TSPServer()
Creates a TSP server for listening on time stamp
requests on port 3188.
|
TSPServer(int port,
java.security.PrivateKey privateKey,
iaik.x509.X509Certificate[] certChain,
iaik.asn1.structures.AlgorithmID signatureAlgorithm,
iaik.asn1.structures.AlgorithmID hashAlgorithm)
Creates a TSP server.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPort()
Gets the port number the server is listening on.
|
static void |
setDebugStream(java.io.OutputStream os)
Sets a stream to which debugging information shall be printed.
|
void |
start()
Starts the TSP Server.
|
void |
stop()
Stops the TSP Server.
|
public static final iaik.asn1.ObjectID TSA_POLICY_ID
public TSPServer()
SetupCMSKeyStore program.public TSPServer(int port, java.security.PrivateKey privateKey, iaik.x509.X509Certificate[] certChain, iaik.asn1.structures.AlgorithmID signatureAlgorithm, iaik.asn1.structures.AlgorithmID hashAlgorithm)
port - the port to listen on (default 3188)privateKey - the private key of the tsp server to be used for signing the tsp responsecertChain - the certificate chain of the server (to be included in the response, if requested)signatureAlgorithm - the algorithm used for signing the responsehashAlgorithm - algorithm to be used for calculating the signature hashpublic void start()
public void stop()
public int getPort()
public static void setDebugStream(java.io.OutputStream os)
os - the stream to which to print debugging information
or null if no debugging information shall
be printed