Top Fields Constructors Methods
org.bouncycastle.tls

public Class CertificateStatus

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, .InputStream, .OutputStream, java.util.Vector, org.bouncycastle.asn1.ASN1Encoding, .ASN1Primitive, org.bouncycastle.asn1.ocsp.OCSPResponse

Field Summary

Modifier and TypeField and Description
protected Object
protected short

Constructor Summary

AccessConstructor and Description
public
CertificateStatus(short statusType, Object response)

Method Summary

Modifier and TypeMethod and Description
public void
encode(OutputStream
the OutputStream to encode to.
output
)

Encode this CertificateStatus to an OutputStream.

public OCSPResponse
public Vector<E>

Returns:

a Vector of (possibly null) OCSPResponse.
getOCSPResponseList
()

public Object
public short
protected static boolean
isCorrectType(short statusType, Object response)

protected static boolean
public static CertificateStatus

Returns:

a CertificateStatus object.
parse
(TlsContext
the TlsContext of the current connection.
context
,
InputStream
the InputStream to parse from.
input
)

Parse a CertificateStatus from an InputStream.

protected static OCSPResponse
parseOCSPResponse(byte[] derEncoding)

protected static void
requireStatusRequestVersion(int minVersion, int statusRequestVersion)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

responseback to summary
protected Object response
statusTypeback to summary
protected short statusType

Constructor Detail

CertificateStatusback to summary
public CertificateStatus(short statusType, Object response)

Method Detail

encodeback to summary
public void encode(OutputStream output) throws IOException

Encode this CertificateStatus to an OutputStream.

Parameters
output:OutputStream

the OutputStream to encode to.

getOCSPResponseback to summary
public OCSPResponse getOCSPResponse()
getOCSPResponseListback to summary
public Vector<E> getOCSPResponseList()
Returns:Vector<E>

a Vector of (possibly null) OCSPResponse.

getResponseback to summary
public Object getResponse()
getStatusTypeback to summary
public short getStatusType()
isCorrectTypeback to summary
protected static boolean isCorrectType(short statusType, Object response)
isOCSPResponseListback to summary
protected static boolean isOCSPResponseList(Object response)
parseback to summary
public static CertificateStatus parse(TlsContext context, InputStream input) throws IOException

Parse a CertificateStatus from an InputStream.

Parameters
context:TlsContext

the TlsContext of the current connection.

input:InputStream

the InputStream to parse from.

Returns:CertificateStatus

a CertificateStatus object.

parseOCSPResponseback to summary
protected static OCSPResponse parseOCSPResponse(byte[] derEncoding) throws IOException
requireStatusRequestVersionback to summary
protected static void requireStatusRequestVersion(int minVersion, int statusRequestVersion) throws IOException