iaik.x509.ocsp.net.application
Class ocsp_response

java.lang.Object
  |
  +--java.net.ContentHandler
        |
        +--iaik.x509.ocsp.net.application.ocsp_response

public class ocsp_response
extends ContentHandler

A content handler for OCSP responses/requests.

To use this content handler either install the corresponding OCSPContentHandlerFactory for your URLConnection or register this handler package by setting the System property java.content.handler.pkgs:

 
 HttpURLConnection.setContentHandlerFactory(new OCSPContentHandlerFactory());
 
or
 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 8
See Also:
OCSPRequest, OCSPResponse, OCSPContentHandlerFactory

Constructor Summary
ocsp_response()
           
 
Method Summary
 Object getContent(URLConnection con)
          Reads an OCSPResponse/OCSPRequest from the given URLConnection.
 
Methods inherited from class java.net.ContentHandler
getContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ocsp_response

public ocsp_response()
Method Detail

getContent

public Object getContent(URLConnection con)
                  throws IOException
Reads an OCSPResponse/OCSPRequest from the given URLConnection.
Overrides:
getContent in class ContentHandler
Parameters:
con - the URLConnection from which to read the OCSP object
Returns:
an OCSPResponse or OCSPRequest object, depending on the type of OCSP object the given URLConnection supplies
Throws:
IOException - if the content supplied by the given URLConnection is not a OCSPResponse or OCSPRequest

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