public class CertificateStatus
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
response |
protected short |
statusType |
Constructor and Description |
---|
CertificateStatus(short statusType,
java.lang.Object response) |
Modifier and Type | Method and Description |
---|---|
void |
encode(java.io.OutputStream output)
Encode this
CertificateStatus to an OutputStream . |
org.bouncycastle.asn1.ocsp.OCSPResponse |
getOCSPResponse() |
java.util.Vector |
getOCSPResponseList() |
java.lang.Object |
getResponse() |
short |
getStatusType() |
protected static boolean |
isCorrectType(short statusType,
java.lang.Object response) |
protected static boolean |
isOCSPResponseList(java.lang.Object response) |
static CertificateStatus |
parse(TlsContext context,
java.io.InputStream input)
Parse a
CertificateStatus from an InputStream . |
protected static org.bouncycastle.asn1.ocsp.OCSPResponse |
parseOCSPResponse(byte[] derEncoding) |
protected static void |
requireStatusRequestVersion(int minVersion,
int statusRequestVersion) |
public CertificateStatus(short statusType, java.lang.Object response)
public short getStatusType()
public java.lang.Object getResponse()
public org.bouncycastle.asn1.ocsp.OCSPResponse getOCSPResponse()
public java.util.Vector getOCSPResponseList()
Vector
of (possibly null) OCSPResponse
.public void encode(java.io.OutputStream output) throws java.io.IOException
CertificateStatus
to an OutputStream
.output
- the OutputStream
to encode to.java.io.IOException
public static CertificateStatus parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
CertificateStatus
from an InputStream
.context
- the TlsContext
of the current connection.input
- the InputStream
to parse from.CertificateStatus
object.java.io.IOException
protected static boolean isCorrectType(short statusType, java.lang.Object response)
protected static boolean isOCSPResponseList(java.lang.Object response)
protected static org.bouncycastle.asn1.ocsp.OCSPResponse parseOCSPResponse(byte[] derEncoding) throws java.io.IOException
java.io.IOException
protected static void requireStatusRequestVersion(int minVersion, int statusRequestVersion) throws java.io.IOException
java.io.IOException