Class OCSPRespBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.cert.ocsp.OCSPRespBCFips
- All Implemented Interfaces:
-
IOCSPResp
Wrapper class for
OCSPResp
.
-
Constructor Summary
ConstructorDescriptionOCSPRespBCFips
(IOCSPResponse ocspResponse) Creates new wrapper instance forOCSPResp
.OCSPRespBCFips
(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 OCSPRespBCFips
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
-
OCSPRespBCFips
public OCSPRespBCFips(org.bouncycastle.cert.ocsp.OCSPResp ocspResp) Creates new wrapper instance forOCSPResp
.- Parameters:
-
ocspResp
-OCSPResp
to be wrapped
-
OCSPRespBCFips
Creates new wrapper instance forOCSPResp
.- Parameters:
-
ocspResponse
- OCSPResponse wrapper
-
-
Method Details
-
getInstance
Gets wrapper instance.- Returns:
-
OCSPRespBCFips
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:
-
OCSPExceptionBCFips
-
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.
-