Package org.bouncycastle.tls
Class CertificateStatus
java.lang.Object
org.bouncycastle.tls.CertificateStatus
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(OutputStream output) Encode thisCertificateStatus
to anOutputStream
.org.bouncycastle.asn1.ocsp.OCSPResponse
short
protected static boolean
isCorrectType
(short statusType, Object response) protected static boolean
isOCSPResponseList
(Object response) static CertificateStatus
parse
(TlsContext context, InputStream input) Parse aCertificateStatus
from anInputStream
.protected static org.bouncycastle.asn1.ocsp.OCSPResponse
parseOCSPResponse
(byte[] derEncoding) protected static void
requireStatusRequestVersion
(int minVersion, int statusRequestVersion)
-
Field Details
-
statusType
protected short statusType -
response
-
-
Constructor Details
-
CertificateStatus
-
-
Method Details
-
getStatusType
public short getStatusType() -
getResponse
-
getOCSPResponse
public org.bouncycastle.asn1.ocsp.OCSPResponse getOCSPResponse() -
getOCSPResponseList
- Returns:
- a
Vector
of (possibly null)OCSPResponse
.
-
encode
Encode thisCertificateStatus
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
IOException
-
parse
Parse aCertificateStatus
from anInputStream
.- Parameters:
context
- theTlsContext
of the current connection.input
- theInputStream
to parse from.- Returns:
- a
CertificateStatus
object. - Throws:
IOException
-
isCorrectType
-
isOCSPResponseList
-
parseOCSPResponse
protected static org.bouncycastle.asn1.ocsp.OCSPResponse parseOCSPResponse(byte[] derEncoding) throws IOException - Throws:
IOException
-
requireStatusRequestVersion
protected static void requireStatusRequestVersion(int minVersion, int statusRequestVersion) throws IOException - Throws:
IOException
-