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.SingleRespsingleResp
-
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 booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.ICertificateIDgetCertID()Calls actualgetCertIDmethod for the wrapped SingleResp object.ICertificateStatusgetCertStatus()Calls actualgetCertStatusmethod for the wrapped SingleResp object.java.util.DategetNextUpdate()Calls actualgetNextUpdatemethod for the wrapped SingleResp object.org.bouncycastle.cert.ocsp.SingleRespgetSingleResp()Gets actual org.bouncycastle object being wrapped.java.util.DategetThisUpdate()Calls actualgetThisUpdatemethod for the wrapped SingleResp object.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Constructor Detail
-
SingleRespBC
public SingleRespBC(org.bouncycastle.cert.ocsp.SingleResp singleResp)
Creates new wrapper instance forSingleResp.- Parameters:
singleResp-SingleRespto be wrapped
-
SingleRespBC
public SingleRespBC(IBasicOCSPResponse basicResp)
Creates new wrapper instance forSingleResp.- Parameters:
basicResp-IBasicOCSPResponsewrapper 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 actualgetCertIDmethod for the wrapped SingleResp object.- Specified by:
getCertIDin interfaceISingleResp- Returns:
ICertificateIDthe wrapper for the received CertificateID.
-
getCertStatus
public ICertificateStatus getCertStatus()
Calls actualgetCertStatusmethod for the wrapped SingleResp object.- Specified by:
getCertStatusin interfaceISingleResp- Returns:
ICertificateStatusthe wrapper for the received CertificateStatus.
-
getNextUpdate
public java.util.Date getNextUpdate()
Calls actualgetNextUpdatemethod for the wrapped SingleResp object.- Specified by:
getNextUpdatein interfaceISingleResp- Returns:
- date of next update.
-
getThisUpdate
public java.util.Date getThisUpdate()
Calls actualgetThisUpdatemethod for the wrapped SingleResp object.- Specified by:
getThisUpdatein 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:
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
-
-