|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.x509.ocsp.net.OCSPContentHandlerFactory
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(); ...
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 |
public OCSPContentHandlerFactory()
Method Detail |
public ContentHandler createContentHandler(String mimeType)
createContentHandler
in interface ContentHandlerFactory
mimeType
- the OCSP content type, eiher "application/ocsp-request"
or "application/ocsp-response"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). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |