Class OCSPRespBC
java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.OCSPRespBC
- All Implemented Interfaces:
-
IOCSPResp
Wrapper class for
OCSPResp
.
-
Constructor Summary
ConstructorDescriptionOCSPRespBC
(IOCSPResponse ocspResponse) Creates new wrapper instance forOCSPResp
.OCSPRespBC
(org.bouncycastle.cert.ocsp.OCSPResp ocspResp) Creates new wrapper instance forOCSPResp
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.byte[]
Calls actualgetEncoded
method for the wrapped OCSPResp object.static OCSPRespBC
Gets wrapper instance.org.bouncycastle.cert.ocsp.OCSPResp
Gets actual org.bouncycastle object being wrapped.Calls actualgetResponseObject
method for the wrapped OCSPResp object.int
Calls actualgetStatus
method for the wrapped OCSPResp object.int
GetsSUCCESSFUL
constant for the wrapped OCSPResp.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
OCSPRespBC
public OCSPRespBC(org.bouncycastle.cert.ocsp.OCSPResp ocspResp) Creates new wrapper instance forOCSPResp
.- Parameters:
-
ocspResp
-OCSPResp
to be wrapped
-
OCSPRespBC
Creates new wrapper instance forOCSPResp
.- Parameters:
-
ocspResponse
- OCSPResponse wrapper
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
OCSPRespBC
instance.
-
getOcspResp
public org.bouncycastle.cert.ocsp.OCSPResp getOcspResp()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
OCSPResp
.
-
getEncoded
Calls actualgetEncoded
method for the wrapped OCSPResp object.- Specified by:
-
getEncoded
in interfaceIOCSPResp
- Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-
getStatus
public int getStatus()Calls actualgetStatus
method for the wrapped OCSPResp object. -
getResponseObject
Calls actualgetResponseObject
method for the wrapped OCSPResp object.- Specified by:
-
getResponseObject
in interfaceIOCSPResp
- Returns:
- response object.
- Throws:
-
OCSPExceptionBC
-
getSuccessful
public int getSuccessful()GetsSUCCESSFUL
constant for the wrapped OCSPResp.- Specified by:
-
getSuccessful
in interfaceIOCSPResp
- Returns:
- OCSPResp.SUCCESSFUL value.
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-