|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.ContentHandler | +--iaik.x509.ocsp.net.application.ocsp_response
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(); ...
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 |
public ocsp_response()
Method Detail |
public Object getContent(URLConnection con) throws IOException
getContent
in class ContentHandler
con
- the URLConnection from which to read the OCSP objectOCSPResponse
or
OCSPRequest
object,
depending on the type of OCSP object the given URLConnection
suppliesIOException
- 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). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |