Class SingleRespBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.ocsp.SingleRespBC
-
- All Implemented Interfaces:
ISingleResp
public class SingleRespBC extends java.lang.Object implements ISingleResp
Wrapper class forSingleResp
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cert.ocsp.SingleResp
singleResp
-
Constructor Summary
Constructors Constructor Description SingleRespBC(IBasicOCSPResponse basicResp)
Creates new wrapper instance forSingleResp
.SingleRespBC(org.bouncycastle.cert.ocsp.SingleResp singleResp)
Creates new wrapper instance forSingleResp
.
-
Method Summary
All 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.ICertificateID
getCertID()
Calls actualgetCertID
method for the wrapped SingleResp object.ICertificateStatus
getCertStatus()
Calls actualgetCertStatus
method for the wrapped SingleResp object.java.util.Date
getNextUpdate()
Calls actualgetNextUpdate
method for the wrapped SingleResp object.org.bouncycastle.cert.ocsp.SingleResp
getSingleResp()
Gets actual org.bouncycastle object being wrapped.java.util.Date
getThisUpdate()
Calls actualgetThisUpdate
method for the wrapped SingleResp object.int
hashCode()
Returns a hash code value based on the wrapped object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.
-
-
-
Constructor Detail
-
SingleRespBC
public SingleRespBC(org.bouncycastle.cert.ocsp.SingleResp singleResp)
Creates new wrapper instance forSingleResp
.- Parameters:
singleResp
-SingleResp
to be wrapped
-
SingleRespBC
public SingleRespBC(IBasicOCSPResponse basicResp)
Creates new wrapper instance forSingleResp
.- Parameters:
basicResp
-IBasicOCSPResponse
wrapper to getSingleResp
-
-
Method Detail
-
getSingleResp
public org.bouncycastle.cert.ocsp.SingleResp getSingleResp()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
SingleResp
.
-
getCertID
public ICertificateID getCertID()
Calls actualgetCertID
method for the wrapped SingleResp object.- Specified by:
getCertID
in interfaceISingleResp
- Returns:
ICertificateID
the wrapper for the received CertificateID.
-
getCertStatus
public ICertificateStatus getCertStatus()
Calls actualgetCertStatus
method for the wrapped SingleResp object.- Specified by:
getCertStatus
in interfaceISingleResp
- Returns:
ICertificateStatus
the wrapper for the received CertificateStatus.
-
getNextUpdate
public java.util.Date getNextUpdate()
Calls actualgetNextUpdate
method for the wrapped SingleResp object.- Specified by:
getNextUpdate
in interfaceISingleResp
- Returns:
- date of next update.
-
getThisUpdate
public java.util.Date getThisUpdate()
Calls actualgetThisUpdate
method for the wrapped SingleResp object.- Specified by:
getThisUpdate
in interfaceISingleResp
- Returns:
- date of this update.
-
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
-
-