demo.x509.ocsp
Class OCSPServerThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--demo.x509.ocsp.OCSPServerThread
All Implemented Interfaces:
Runnable

public class OCSPServerThread
extends Thread

Thread for the simple OCSP server demo.

This class is part of the IAIK OCSP client - server demo. When starting the demo server, it listens on port 9999 for OCSP requests which may be sent by the IAIK OCSP demo client. For each request posted an OCSPServerThread is created for handling the request.

The keys and certificates required for this demo are obtained from the IAIK-JCE demo keystore "jce.keystore" which may be generated by running the SetupKeyStore program or a read in by the OCSPServer.

Version:
File Revision 9
See Also:
OCSPServer, OCSPClient, HttpOCSPClient

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
OCSPServerThread(Socket socket, ResponseGenerator responseGenerator, AlgorithmID signatureAlgorithm)
          Creates an OCSP server thread for handling an OCSPRequest.
 
Method Summary
 void run()
          Handles the client request.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OCSPServerThread

public OCSPServerThread(Socket socket,
                        ResponseGenerator responseGenerator,
                        AlgorithmID signatureAlgorithm)
Creates an OCSP server thread for handling an OCSPRequest.
Parameters:
socket - the socket from which to read the request and to which to send the response
responseGenerator - a ResponseGenerator object used for request parsing and response creation tasks
signatureAlgorithm - the algorithm used for signing the response
Method Detail

run

public void run()
Handles the client request.
Overrides:
run in class Thread

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK