Class BasicOCSPRespBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.ocsp.BasicOCSPRespBC
-
- All Implemented Interfaces:
IBasicOCSPResp
public class BasicOCSPRespBC extends java.lang.Object implements IBasicOCSPResp
Wrapper class forBasicOCSPResp
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cert.ocsp.BasicOCSPResp
basicOCSPResp
-
Constructor Summary
Constructors Constructor Description BasicOCSPRespBC(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
Creates new wrapper instance forBasicOCSPResp
.
-
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.org.bouncycastle.cert.ocsp.BasicOCSPResp
getBasicOCSPResp()
Gets actual org.bouncycastle object being wrapped.IX509CertificateHolder[]
getCerts()
Calls actualgetCerts
method for the wrapped BasicOCSPResp object.byte[]
getEncoded()
Calls actualgetEncoded
method for the wrapped BasicOCSPResp object.IASN1Encodable
getExtensionParsedValue(IASN1ObjectIdentifier objectIdentifier)
Gets parsed value of the extension retrieved using actualgetExtension
method for the wrapped BasicOCSPResp object.java.util.Date
getProducedAt()
Calls actualgetProducedAt
method for the wrapped BasicOCSPResp object.ISingleResp[]
getResponses()
Calls actualgetResponses
method for the wrapped BasicOCSPResp object.int
hashCode()
Returns a hash code value based on the wrapped object.boolean
isSignatureValid(IContentVerifierProvider provider)
Calls actualisSignatureValid
method for the wrapped BasicOCSPResp object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.
-
-
-
Method Detail
-
getBasicOCSPResp
public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
BasicOCSPResp
.
-
getResponses
public ISingleResp[] getResponses()
Calls actualgetResponses
method for the wrapped BasicOCSPResp object.- Specified by:
getResponses
in interfaceIBasicOCSPResp
- Returns:
- wrapped SingleResp list.
-
isSignatureValid
public boolean isSignatureValid(IContentVerifierProvider provider) throws OCSPExceptionBC
Calls actualisSignatureValid
method for the wrapped BasicOCSPResp object.- Specified by:
isSignatureValid
in interfaceIBasicOCSPResp
- Parameters:
provider
- ContentVerifierProvider wrapper- Returns:
- boolean value.
- Throws:
OCSPExceptionBC
-
getCerts
public IX509CertificateHolder[] getCerts()
Calls actualgetCerts
method for the wrapped BasicOCSPResp object.- Specified by:
getCerts
in interfaceIBasicOCSPResp
- Returns:
- wrapped certificates list.
-
getEncoded
public byte[] getEncoded() throws java.io.IOException
Calls actualgetEncoded
method for the wrapped BasicOCSPResp object.- Specified by:
getEncoded
in interfaceIBasicOCSPResp
- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException
- on encoding error.
-
getProducedAt
public java.util.Date getProducedAt()
Calls actualgetProducedAt
method for the wrapped BasicOCSPResp object.- Specified by:
getProducedAt
in interfaceIBasicOCSPResp
- Returns:
- produced at date.
-
getExtensionParsedValue
public IASN1Encodable getExtensionParsedValue(IASN1ObjectIdentifier objectIdentifier)
Gets parsed value of the extension retrieved using actualgetExtension
method for the wrapped BasicOCSPResp object.- Specified by:
getExtensionParsedValue
in interfaceIBasicOCSPResp
- Parameters:
objectIdentifier
- extension object identifier- Returns:
- wrapped extension parsed 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
-
-