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 OCSPRespBuilderBC
INSTANCE
private org.bouncycastle.cert.ocsp.OCSPRespBuilder
ocspRespBuilder
private static int
SUCCESSFUL
-
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 IOCSPResp
build(int i, IBasicOCSPResp basicOCSPResp)
Calls actualbuild
method for the wrapped OCSPRespBuilder object.boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.static OCSPRespBuilderBC
getInstance()
Gets wrapper instance.org.bouncycastle.cert.ocsp.OCSPRespBuilder
getOcspRespBuilder()
Gets actual org.bouncycastle object being wrapped.int
getSuccessful()
GetsSUCCESSFUL
constant for the wrapped OCSPRespBuilder.int
hashCode()
Returns a hash code value based on the wrapped object.java.lang.String
toString()
DelegatestoString
method 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:
OCSPRespBuilderBC
instance.
-
getOcspRespBuilder
public org.bouncycastle.cert.ocsp.OCSPRespBuilder getOcspRespBuilder()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
OCSPRespBuilder
.
-
getSuccessful
public int getSuccessful()
GetsSUCCESSFUL
constant for the wrapped OCSPRespBuilder.- Specified by:
getSuccessful
in interfaceIOCSPRespBuilder
- Returns:
- OCSPRespBuilder.SUCCESSFUL value.
-
build
public IOCSPResp build(int i, IBasicOCSPResp basicOCSPResp) throws OCSPExceptionBC
Calls actualbuild
method for the wrapped OCSPRespBuilder object.- Specified by:
build
in interfaceIOCSPRespBuilder
- Parameters:
i
- statusbasicOCSPResp
- BasicOCSPResp wrapper- Returns:
IOCSPResp
the 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoString
method call to the wrapped object.- Overrides:
toString
in classjava.lang.Object
-
-