iaik.x509.ocsp.net
Class OCSPContentHandlerFactory

java.lang.Object
  |
  +--iaik.x509.ocsp.net.OCSPContentHandlerFactory
All Implemented Interfaces:
ContentHandlerFactory

public class OCSPContentHandlerFactory
extends Object
implements ContentHandlerFactory

A content handler factory for OCSP responses/requests.

When installing this content handler factory for your URLConnection you may use the corresponding content handler for reading OCSP requests/responses from an URLConnection:

 
 HttpURLConnection.setContentHandlerFactory(new OCSPContentHandlerFactory());
 
Alternatively you immediately may register the content content handler setting the System property java.content.handler.pkgs:
 System.getProperties().put("java.content.handler.pkgs","iaik.x509.ocsp.net");
 
Registering this content handler (factory) allows you to call the getContent() method on an URLConnection object, e.g.:
 URL url = ...;
 HttpURLConnection con = (HttpURLConnection)url.openConnection();
 ...
 OCSPResponse ocspResponse = (OCSPResponse)con.getContent();
 ...
 

Version:
File Revision 7
See Also:
OCSPRequest, OCSPResponse, ocsp_response

Constructor Summary
OCSPContentHandlerFactory()
           
 
Method Summary
 ContentHandler createContentHandler(String mimeType)
          Returns a content handler for the given OCSP type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OCSPContentHandlerFactory

public OCSPContentHandlerFactory()
Method Detail

createContentHandler

public ContentHandler createContentHandler(String mimeType)
Returns a content handler for the given OCSP type.
Specified by:
createContentHandler in interface ContentHandlerFactory
Parameters:
mimeType - the OCSP content type, eiher "application/ocsp-request" or "application/ocsp-response"
Returns:
an OCSP content handler for the given type, or null if the given type is not "application/ocsp-request" or "application/ocsp-response"

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