Package org.bouncycastle.tls
Class CertificateStatus
java.lang.Object
org.bouncycastle.tls.CertificateStatus
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(OutputStream output) Encode thisCertificateStatusto anOutputStream.org.bouncycastle.asn1.ocsp.OCSPResponseshortprotected static booleanisCorrectType(short statusType, Object response) protected static booleanisOCSPResponseList(Object response) static CertificateStatusparse(TlsContext context, InputStream input) Parse aCertificateStatusfrom anInputStream.protected static org.bouncycastle.asn1.ocsp.OCSPResponseparseOCSPResponse(byte[] derEncoding) protected static voidrequireStatusRequestVersion(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
Vectorof (possibly null)OCSPResponse.
-
encode
Encode thisCertificateStatusto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
IOException
-
parse
Parse aCertificateStatusfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
CertificateStatusobject. - 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
-