Package org.bouncycastle.asn1.ocsp
Class BasicOCSPResponse
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.ocsp.BasicOCSPResponse
-
- All Implemented Interfaces:
ASN1Encodable
,Encodable
public class BasicOCSPResponse extends ASN1Object
OCSP RFC 2560, RFC 6960BasicOCSPResponse ::= SEQUENCE { tbsResponseData ResponseData, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING, certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
-
-
Constructor Summary
Constructors Constructor Description BasicOCSPResponse(ResponseData tbsResponseData, AlgorithmIdentifier signatureAlgorithm, DERBitString signature, ASN1Sequence certs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ASN1Sequence
getCerts()
static BasicOCSPResponse
getInstance(java.lang.Object obj)
static BasicOCSPResponse
getInstance(ASN1TaggedObject obj, boolean explicit)
DERBitString
getSignature()
AlgorithmIdentifier
getSignatureAlgorithm()
ResponseData
getTbsResponseData()
ASN1Primitive
toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.-
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
-
-
-
Constructor Detail
-
BasicOCSPResponse
public BasicOCSPResponse(ResponseData tbsResponseData, AlgorithmIdentifier signatureAlgorithm, DERBitString signature, ASN1Sequence certs)
-
-
Method Detail
-
getInstance
public static BasicOCSPResponse getInstance(ASN1TaggedObject obj, boolean explicit)
-
getInstance
public static BasicOCSPResponse getInstance(java.lang.Object obj)
-
getTbsResponseData
public ResponseData getTbsResponseData()
-
getSignatureAlgorithm
public AlgorithmIdentifier getSignatureAlgorithm()
-
getSignature
public DERBitString getSignature()
-
getCerts
public ASN1Sequence getCerts()
-
toASN1Primitive
public ASN1Primitive toASN1Primitive()
Produce an object suitable for an ASN1OutputStream.BasicOCSPResponse ::= SEQUENCE { tbsResponseData ResponseData, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING, certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
- Specified by:
toASN1Primitive
in interfaceASN1Encodable
- Specified by:
toASN1Primitive
in classASN1Object
- Returns:
- a primitive representation of this object.
-
-