Methods Summary |
---|
public static org.bouncycastle.asn1.ocsp.OCSPResponse | getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit)
return getInstance(ASN1Sequence.getInstance(obj, explicit));
|
public static org.bouncycastle.asn1.ocsp.OCSPResponse | getInstance(java.lang.Object obj)
if (obj == null || obj instanceof OCSPResponse)
{
return (OCSPResponse)obj;
}
else if (obj instanceof ASN1Sequence)
{
return new OCSPResponse((ASN1Sequence)obj);
}
throw new IllegalArgumentException("unknown object in factory");
|
public ResponseBytes | getResponseBytes()
return responseBytes;
|
public OCSPResponseStatus | getResponseStatus()
return responseStatus;
|
public org.bouncycastle.asn1.DERObject | toASN1Object()Produce an object suitable for an ASN1OutputStream.
OCSPResponse ::= SEQUENCE {
responseStatus OCSPResponseStatus,
responseBytes [0] EXPLICIT ResponseBytes OPTIONAL }
ASN1EncodableVector v = new ASN1EncodableVector();
v.add(responseStatus);
if (responseBytes != null)
{
v.add(new DERTaggedObject(true, 0, responseBytes));
}
return new DERSequence(v);
|