Class OCSPRespBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.ocsp.OCSPRespBC
-
-
Field Summary
Fields Modifier and Type Field Description private static OCSPRespBCINSTANCEprivate org.bouncycastle.cert.ocsp.OCSPRespocspRespprivate static intSUCCESSFUL
-
Constructor Summary
Constructors Constructor Description OCSPRespBC(IOCSPResponse ocspResponse)Creates new wrapper instance forOCSPResp.OCSPRespBC(org.bouncycastle.cert.ocsp.OCSPResp ocspResp)Creates new wrapper instance forOCSPResp.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.byte[]getEncoded()Calls actualgetEncodedmethod for the wrapped OCSPResp object.static OCSPRespBCgetInstance()Gets wrapper instance.org.bouncycastle.cert.ocsp.OCSPRespgetOcspResp()Gets actual org.bouncycastle object being wrapped.java.lang.ObjectgetResponseObject()Calls actualgetResponseObjectmethod for the wrapped OCSPResp object.intgetStatus()Calls actualgetStatusmethod for the wrapped OCSPResp object.intgetSuccessful()GetsSUCCESSFULconstant for the wrapped OCSPResp.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Field Detail
-
INSTANCE
private static final OCSPRespBC INSTANCE
-
SUCCESSFUL
private static final int SUCCESSFUL
- See Also:
- Constant Field Values
-
ocspResp
private final org.bouncycastle.cert.ocsp.OCSPResp ocspResp
-
-
Constructor Detail
-
OCSPRespBC
public OCSPRespBC(org.bouncycastle.cert.ocsp.OCSPResp ocspResp)
Creates new wrapper instance forOCSPResp.- Parameters:
ocspResp-OCSPRespto be wrapped
-
OCSPRespBC
public OCSPRespBC(IOCSPResponse ocspResponse)
Creates new wrapper instance forOCSPResp.- Parameters:
ocspResponse- OCSPResponse wrapper
-
-
Method Detail
-
getInstance
public static OCSPRespBC 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
public byte[] getEncoded() throws java.io.IOExceptionCalls actualgetEncodedmethod for the wrapped OCSPResp object.- Specified by:
getEncodedin interfaceIOCSPResp- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException- on encoding error.
-
getStatus
public int getStatus()
Calls actualgetStatusmethod for the wrapped OCSPResp object.
-
getResponseObject
public java.lang.Object getResponseObject() throws OCSPExceptionBCCalls 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
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-