IAIK TSP
version 2.32

iaik.tsp.transport.tcpip
Class TspTcpIpProtocol

java.lang.Object
  extended by iaik.tsp.transport.tcpip.TspTcpIpProtocol

public class TspTcpIpProtocol
extends java.lang.Object

Class which implements the TCP/IP based protocol as it is specified in RFC 3161.


Constructor Summary
TspTcpIpProtocol()
           
 
Method Summary
 TspTcpIpResponse sendRequest(TimeStampReq request, java.io.OutputStream output, java.io.InputStream input)
          Sends a TimeStampReq to the specified server and receives a TspTcpIpResponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TspTcpIpProtocol

public TspTcpIpProtocol()
Method Detail

sendRequest

public TspTcpIpResponse sendRequest(TimeStampReq request,
                                    java.io.OutputStream output,
                                    java.io.InputStream input)
                             throws java.io.IOException,
                                    TspTcpIpFormatException,
                                    CodingException
Sends a TimeStampReq to the specified server and receives a TspTcpIpResponse.

Parameters:
request - The TimeStampReq to send.
output - The OutputStream for sending the TimeStampReq.
input - The InputStream to receive the TspTcpIpResponse.
Returns:
The received TspTcpIpResponse.
Throws:
java.io.IOException - Thrown if any I/O exception occurs during transport.
TspTcpIpFormatException - Thrown if the received message is neither a finalMsgRep nor an errorMsgRep.
CodingException - Thrown if the received TimeStampResp could not be parsed.

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK TSP, © 2002 IAIK, © 2003 - 2014 Stiftung SIC