Package no.digipost.security.ocsp
Class OcspResult
- java.lang.Object
-
- no.digipost.security.ocsp.OcspResult
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class OcspResult extends Object implements Closeable
The result of a successful lookup against an OCSP responder. The entity from the response is retrieved usinggetResponseObject().- See Also:
BasicOCSPResp
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.bouncycastle.cert.ocsp.BasicOCSPRespgetResponseObject()booleanisOkResponse()
-
-
-
Field Detail
-
uri
public final URI uri
-
response
public final org.apache.http.client.methods.CloseableHttpResponse response
-
-
Method Detail
-
getResponseObject
public org.bouncycastle.cert.ocsp.BasicOCSPResp getResponseObject() throws org.bouncycastle.cert.ocsp.OCSPException, IllegalStateException, IOException- Returns:
- a BasicOCSPResp
- Throws:
org.bouncycastle.cert.ocsp.OCSPExceptionIllegalStateExceptionIOException
-
isOkResponse
public boolean isOkResponse()
- Returns:
- whether the http status code from the request was OK.
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-