Class OCSPRespBuilderBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.ocsp.OCSPRespBuilderBC
-
- All Implemented Interfaces:
IOCSPRespBuilder
public class OCSPRespBuilderBC extends java.lang.Object implements IOCSPRespBuilder
Wrapper class forOCSPRespBuilder.
-
-
Field Summary
Fields Modifier and Type Field Description private static OCSPRespBuilderBCINSTANCEprivate org.bouncycastle.cert.ocsp.OCSPRespBuilderocspRespBuilderprivate static intSUCCESSFUL
-
Constructor Summary
Constructors Constructor Description OCSPRespBuilderBC(org.bouncycastle.cert.ocsp.OCSPRespBuilder ocspRespBuilder)Creates new wrapper instance forOCSPRespBuilder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IOCSPRespbuild(int i, IBasicOCSPResp basicOCSPResp)Calls actualbuildmethod for the wrapped OCSPRespBuilder object.booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.static OCSPRespBuilderBCgetInstance()Gets wrapper instance.org.bouncycastle.cert.ocsp.OCSPRespBuildergetOcspRespBuilder()Gets actual org.bouncycastle object being wrapped.intgetSuccessful()GetsSUCCESSFULconstant for the wrapped OCSPRespBuilder.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 OCSPRespBuilderBC INSTANCE
-
SUCCESSFUL
private static final int SUCCESSFUL
- See Also:
- Constant Field Values
-
ocspRespBuilder
private final org.bouncycastle.cert.ocsp.OCSPRespBuilder ocspRespBuilder
-
-
Method Detail
-
getInstance
public static OCSPRespBuilderBC getInstance()
Gets wrapper instance.- Returns:
OCSPRespBuilderBCinstance.
-
getOcspRespBuilder
public org.bouncycastle.cert.ocsp.OCSPRespBuilder getOcspRespBuilder()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
OCSPRespBuilder.
-
getSuccessful
public int getSuccessful()
GetsSUCCESSFULconstant for the wrapped OCSPRespBuilder.- Specified by:
getSuccessfulin interfaceIOCSPRespBuilder- Returns:
- OCSPRespBuilder.SUCCESSFUL value.
-
build
public IOCSPResp build(int i, IBasicOCSPResp basicOCSPResp) throws OCSPExceptionBC
Calls actualbuildmethod for the wrapped OCSPRespBuilder object.- Specified by:
buildin interfaceIOCSPRespBuilder- Parameters:
i- statusbasicOCSPResp- BasicOCSPResp wrapper- Returns:
IOCSPRespthe wrapper for built OCSPResp object.- Throws:
OCSPExceptionBC
-
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
-
-