Class BasicOCSPRespBC
java.lang.Object
com.itextpdf.bouncycastle.cert.ocsp.BasicOCSPRespBC
- All Implemented Interfaces:
-
IBasicOCSPResp
Wrapper class for
BasicOCSPResp
.
-
Constructor Summary
ConstructorDescriptionBasicOCSPRespBC
(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp) Creates new wrapper instance forBasicOCSPResp
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.ocsp.BasicOCSPResp
Gets actual org.bouncycastle object being wrapped.getCerts()
Calls actualgetCerts
method for the wrapped BasicOCSPResp object.byte[]
Calls actualgetEncoded
method for the wrapped BasicOCSPResp object.getExtensionParsedValue
(IASN1ObjectIdentifier objectIdentifier) Gets parsed value of the extension retrieved using actualgetExtension
method for the wrapped BasicOCSPResp object.Calls actualgetProducedAt
method for the wrapped BasicOCSPResp object.Calls actualgetEncoded
method for the wrapped BasicOCSPResp object.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.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
BasicOCSPRespBC
public BasicOCSPRespBC(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp) Creates new wrapper instance forBasicOCSPResp
.- Parameters:
-
basicOCSPResp
-BasicOCSPResp
to be wrapped
-
-
Method Details
-
getBasicOCSPResp
public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
BasicOCSPResp
.
-
getResponses
Calls actualgetResponses
method for the wrapped BasicOCSPResp object.- Specified by:
-
getResponses
in interfaceIBasicOCSPResp
- Returns:
- wrapped SingleResp list.
-
isSignatureValid
Calls actualisSignatureValid
method for the wrapped BasicOCSPResp object.- Specified by:
-
isSignatureValid
in interfaceIBasicOCSPResp
- Parameters:
-
provider
- ContentVerifierProvider wrapper - Returns:
- boolean value.
- Throws:
-
OCSPExceptionBC
-
getCerts
Calls actualgetCerts
method for the wrapped BasicOCSPResp object.- Specified by:
-
getCerts
in interfaceIBasicOCSPResp
- Returns:
- wrapped certificates list.
-
getEncoded
Calls actualgetEncoded
method for the wrapped BasicOCSPResp object.- Specified by:
-
getEncoded
in interfaceIBasicOCSPResp
- Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-
getProducedAt
Calls actualgetProducedAt
method for the wrapped BasicOCSPResp object.- Specified by:
-
getProducedAt
in interfaceIBasicOCSPResp
- Returns:
- produced at date.
-
getExtensionParsedValue
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.
-
getResponderId
Calls actualgetEncoded
method for the wrapped BasicOCSPResp object.- Specified by:
-
getResponderId
in interfaceIBasicOCSPResp
- Returns:
- the Responder Id
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-