Package org.bouncycastle.tls
Class CertificateStatus
- java.lang.Object
-
- org.bouncycastle.tls.CertificateStatus
-
public class CertificateStatus extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Objectresponseprotected shortstatusType
-
Constructor Summary
Constructors Constructor Description CertificateStatus(short statusType, java.lang.Object response)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(java.io.OutputStream output)Encode thisCertificateStatusto anOutputStream.org.bouncycastle.asn1.ocsp.OCSPResponsegetOCSPResponse()java.util.VectorgetOCSPResponseList()java.lang.ObjectgetResponse()shortgetStatusType()protected static booleanisCorrectType(short statusType, java.lang.Object response)protected static booleanisOCSPResponseList(java.lang.Object response)static CertificateStatusparse(TlsContext context, java.io.InputStream input)Parse aCertificateStatusfrom anInputStream.protected static org.bouncycastle.asn1.ocsp.OCSPResponseparseOCSPResponse(byte[] derEncoding)protected static voidrequireStatusRequestVersion(int minVersion, int statusRequestVersion)
-
-
-
Method Detail
-
getStatusType
public short getStatusType()
-
getResponse
public java.lang.Object getResponse()
-
getOCSPResponse
public org.bouncycastle.asn1.ocsp.OCSPResponse getOCSPResponse()
-
getOCSPResponseList
public java.util.Vector getOCSPResponseList()
- Returns:
- a
Vectorof (possibly null)OCSPResponse.
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOExceptionEncode thisCertificateStatusto anOutputStream.- Parameters:
output- theOutputStreamto encode to.- Throws:
java.io.IOException
-
parse
public static CertificateStatus parse(TlsContext context, java.io.InputStream input) throws java.io.IOException
Parse aCertificateStatusfrom anInputStream.- Parameters:
context- theTlsContextof the current connection.input- theInputStreamto parse from.- Returns:
- a
CertificateStatusobject. - Throws:
java.io.IOException
-
isCorrectType
protected static boolean isCorrectType(short statusType, java.lang.Object response)
-
isOCSPResponseList
protected static boolean isOCSPResponseList(java.lang.Object response)
-
parseOCSPResponse
protected static org.bouncycastle.asn1.ocsp.OCSPResponse parseOCSPResponse(byte[] derEncoding) throws java.io.IOException- Throws:
java.io.IOException
-
requireStatusRequestVersion
protected static void requireStatusRequestVersion(int minVersion, int statusRequestVersion) throws java.io.IOException- Throws:
java.io.IOException
-
-