Class OCSPRespBC
java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.OCSPRespBC
- All Implemented Interfaces:
-
IOCSPResp
Wrapper class for
OCSPResp.
-
Constructor Summary
ConstructorsConstructorDescriptionOCSPRespBC(IOCSPResponse ocspResponse) Creates new wrapper instance forOCSPResp.OCSPRespBC(org.bouncycastle.cert.ocsp.OCSPResp ocspResp) Creates new wrapper instance forOCSPResp. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.byte[]Calls actualgetEncodedmethod for the wrapped OCSPResp object.static OCSPRespBCGets wrapper instance.org.bouncycastle.cert.ocsp.OCSPRespGets actual org.bouncycastle object being wrapped.Calls actualgetResponseObjectmethod for the wrapped OCSPResp object.intCalls actualgetStatusmethod for the wrapped OCSPResp object.intGetsSUCCESSFULconstant for the wrapped OCSPResp.inthashCode()Returns a hash code value based on the wrapped object.toString()DelegatestoStringmethod call to the wrapped object.
-
Constructor Details
-
OCSPRespBC
public OCSPRespBC(org.bouncycastle.cert.ocsp.OCSPResp ocspResp) Creates new wrapper instance forOCSPResp.- Parameters:
-
ocspResp-OCSPRespto be wrapped
-
OCSPRespBC
Creates new wrapper instance forOCSPResp.- Parameters:
-
ocspResponse- OCSPResponse wrapper
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
OCSPRespBCinstance.
-
getOcspResp
public org.bouncycastle.cert.ocsp.OCSPResp getOcspResp()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
OCSPResp.
-
getEncoded
Calls actualgetEncodedmethod for the wrapped OCSPResp object.- Specified by:
-
getEncodedin interfaceIOCSPResp - Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException- on encoding error.
-
getStatus
public int getStatus()Calls actualgetStatusmethod for the wrapped OCSPResp object. -
getResponseObject
Calls actualgetResponseObjectmethod for the wrapped OCSPResp object.- Specified by:
-
getResponseObjectin interfaceIOCSPResp - Returns:
- response object.
- Throws:
-
OCSPExceptionBC
-
getSuccessful
public int getSuccessful()GetsSUCCESSFULconstant for the wrapped OCSPResp.- Specified by:
-
getSuccessfulin 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
DelegatestoStringmethod call to the wrapped object.
-