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.BasicOCSPRespbasicOCSPResp
-
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 booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.ocsp.BasicOCSPRespgetBasicOCSPResp()Gets actual org.bouncycastle object being wrapped.IX509CertificateHolder[]getCerts()Calls actualgetCertsmethod for the wrapped BasicOCSPResp object.byte[]getEncoded()Calls actualgetEncodedmethod for the wrapped BasicOCSPResp object.IASN1EncodablegetExtensionParsedValue(IASN1ObjectIdentifier objectIdentifier)Gets parsed value of the extension retrieved using actualgetExtensionmethod for the wrapped BasicOCSPResp object.java.util.DategetProducedAt()Calls actualgetProducedAtmethod for the wrapped BasicOCSPResp object.IRespIDgetResponderId()Calls actualgetEncodedmethod for the wrapped BasicOCSPResp object.ISingleResp[]getResponses()Calls actualgetResponsesmethod for the wrapped BasicOCSPResp object.inthashCode()Returns a hash code value based on the wrapped object.booleanisSignatureValid(IContentVerifierProvider provider)Calls actualisSignatureValidmethod for the wrapped BasicOCSPResp object.java.lang.StringtoString()DelegatestoStringmethod 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 actualgetResponsesmethod for the wrapped BasicOCSPResp object.- Specified by:
getResponsesin interfaceIBasicOCSPResp- Returns:
- wrapped SingleResp list.
-
isSignatureValid
public boolean isSignatureValid(IContentVerifierProvider provider) throws OCSPExceptionBC
Calls actualisSignatureValidmethod for the wrapped BasicOCSPResp object.- Specified by:
isSignatureValidin interfaceIBasicOCSPResp- Parameters:
provider- ContentVerifierProvider wrapper- Returns:
- boolean value.
- Throws:
OCSPExceptionBC
-
getCerts
public IX509CertificateHolder[] getCerts()
Calls actualgetCertsmethod for the wrapped BasicOCSPResp object.- Specified by:
getCertsin interfaceIBasicOCSPResp- Returns:
- wrapped certificates list.
-
getEncoded
public byte[] getEncoded() throws java.io.IOExceptionCalls actualgetEncodedmethod for the wrapped BasicOCSPResp object.- Specified by:
getEncodedin interfaceIBasicOCSPResp- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException- on encoding error.
-
getProducedAt
public java.util.Date getProducedAt()
Calls actualgetProducedAtmethod for the wrapped BasicOCSPResp object.- Specified by:
getProducedAtin interfaceIBasicOCSPResp- Returns:
- produced at date.
-
getExtensionParsedValue
public IASN1Encodable getExtensionParsedValue(IASN1ObjectIdentifier objectIdentifier)
Gets parsed value of the extension retrieved using actualgetExtensionmethod for the wrapped BasicOCSPResp object.- Specified by:
getExtensionParsedValuein interfaceIBasicOCSPResp- Parameters:
objectIdentifier- extension object identifier- Returns:
- wrapped extension parsed value.
-
getResponderId
public IRespID getResponderId()
Calls actualgetEncodedmethod for the wrapped BasicOCSPResp object.- Specified by:
getResponderIdin interfaceIBasicOCSPResp- Returns:
- the Responder Id
-
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
-
-