public abstract class OCSPProtocolHandler
extends java.lang.Object
Examples of protocols which could be used to send OCSP requests:
HTTPOCSPProtocolHandler| Constructor and Description |
|---|
OCSPProtocolHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
getConnectTimeout() |
abstract OCSPResponse |
getOCSPResponse()
Once an OCSP request has been set, the Response should be available
if everything has gone as requested.
|
int |
getReadTimeout() |
java.net.URL |
getResponderURL() |
abstract java.lang.String |
getResponseMessage()
Gets the http response message.
|
abstract int |
getSuccessCode()
Returns the implementations integer representation of a successcode,
For HTTP, HTTPS, and FTP it is 200, but it could be different for another
protocol.
|
abstract int |
sendRequest(OCSPRequest ocspRequest)
Method used to send OCSP request via the specified protocol
|
void |
setConnectTimeout(int milliseconds)
Sets the connect timeout for connecting to the OCSP responder
in milliseconds.
|
void |
setReadTimeout(int milliseconds)
Set the Timeout for reading data from the connection in
milliseconds.
|
void |
setResponderURL(java.net.URL location)
Sets the URL of the responder.
|
public void setResponderURL(java.net.URL location)
location - The URL location of the responderpublic abstract int sendRequest(OCSPRequest ocspRequest) throws java.io.IOException, UnknownResponseException, java.lang.InterruptedException, CodingException
ocspRequest - The OCSP request to be sent to the serverjava.io.IOExceptionjava.lang.InterruptedExceptionCodingExceptionUnknownResponseExceptionpublic abstract OCSPResponse getOCSPResponse()
public abstract java.lang.String getResponseMessage()
public void setReadTimeout(int milliseconds)
milliseconds - the number of milliseconds for the read timeoutpublic int getReadTimeout()
public void setConnectTimeout(int milliseconds)
milliseconds - public int getConnectTimeout()
public abstract int getSuccessCode()
public java.net.URL getResponderURL()