Top Description Fields Constructors Methods
org.bouncycastle.asn1.ocsp

public Class BasicOCSPResponse

extends ASN1Object
Class Inheritance
Imports
org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .ASN1TaggedObject, .DERBitString, .DERSequence, .DERTaggedObject, org.bouncycastle.asn1.x509.AlgorithmIdentifier

OCSP RFC 2560, RFC 6960
BasicOCSPResponse       ::= SEQUENCE {
   tbsResponseData      ResponseData,
   signatureAlgorithm   AlgorithmIdentifier,
   signature            BIT STRING,
   certs                [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }

Field Summary

Modifier and TypeField and Description
private ASN1Sequence
private DERBitString
private AlgorithmIdentifier
private ResponseData

Constructor Summary

AccessConstructor and Description
public
BasicOCSPResponse(ResponseData tbsResponseData, AlgorithmIdentifier signatureAlgorithm, DERBitString signature, ASN1Sequence certs)

private

Method Summary

Modifier and TypeMethod and Description
public ASN1Sequence
public static BasicOCSPResponse
getInstance(ASN1TaggedObject obj, boolean explicit)

public static BasicOCSPResponse
public DERBitString
public AlgorithmIdentifier
public ResponseData
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

certsback to summary
private ASN1Sequence certs
signatureback to summary
private DERBitString signature
signatureAlgorithmback to summary
private AlgorithmIdentifier signatureAlgorithm
tbsResponseDataback to summary
private ResponseData tbsResponseData

Constructor Detail

BasicOCSPResponseback to summary
public BasicOCSPResponse(ResponseData tbsResponseData, AlgorithmIdentifier signatureAlgorithm, DERBitString signature, ASN1Sequence certs)
BasicOCSPResponseback to summary
private BasicOCSPResponse(ASN1Sequence seq)

Method Detail

getCertsback to summary
public ASN1Sequence getCerts()
getInstanceback to summary
public static BasicOCSPResponse getInstance(ASN1TaggedObject obj, boolean explicit)
getInstanceback to summary
public static BasicOCSPResponse getInstance(Object obj)
getSignatureback to summary
public DERBitString getSignature()
getSignatureAlgorithmback to summary
public AlgorithmIdentifier getSignatureAlgorithm()
getTbsResponseDataback to summary
public ResponseData getTbsResponseData()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Produce an object suitable for an ASN1OutputStream.

BasicOCSPResponse       ::= SEQUENCE {
     tbsResponseData      ResponseData,
     signatureAlgorithm   AlgorithmIdentifier,
     signature            BIT STRING,
     certs                [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

a primitive representation of this object.