Class OCSPRespBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.ocsp.OCSPRespBC
-
-
Field Summary
Fields Modifier and Type Field Description private static OCSPRespBC
INSTANCE
private org.bouncycastle.cert.ocsp.OCSPResp
ocspResp
private static int
SUCCESSFUL
-
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 boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.byte[]
getEncoded()
Calls actualgetEncoded
method for the wrapped OCSPResp object.static OCSPRespBC
getInstance()
Gets wrapper instance.org.bouncycastle.cert.ocsp.OCSPResp
getOcspResp()
Gets actual org.bouncycastle object being wrapped.java.lang.Object
getResponseObject()
Calls actualgetResponseObject
method for the wrapped OCSPResp object.int
getStatus()
Calls actualgetStatus
method for the wrapped OCSPResp object.int
getSuccessful()
GetsSUCCESSFUL
constant for the wrapped OCSPResp.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 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
-OCSPResp
to 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:
OCSPRespBC
instance.
-
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.IOException
Calls actualgetEncoded
method for the wrapped OCSPResp object.- Specified by:
getEncoded
in interfaceIOCSPResp
- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException
- on encoding error.
-
getStatus
public int getStatus()
Calls actualgetStatus
method for the wrapped OCSPResp object.
-
getResponseObject
public java.lang.Object getResponseObject() throws OCSPExceptionBC
Calls actualgetResponseObject
method for the wrapped OCSPResp object.- Specified by:
getResponseObject
in interfaceIOCSPResp
- Returns:
- response object.
- Throws:
OCSPExceptionBC
-
getSuccessful
public int getSuccessful()
GetsSUCCESSFUL
constant for the wrapped OCSPResp.- Specified by:
getSuccessful
in 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:
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
-
-