Package org.bouncycastle.crypto.tls
Class CertificateStatus
- java.lang.Object
-
- org.bouncycastle.crypto.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.OCSPResponsegetOCSPResponse()java.lang.ObjectgetResponse()shortgetStatusType()protected static booleanisCorrectType(short statusType, java.lang.Object response)static CertificateStatusparse(java.io.InputStream input)Parse aCertificateStatusfrom anInputStream.
-
-
-
Method Detail
-
getStatusType
public short getStatusType()
-
getResponse
public java.lang.Object getResponse()
-
getOCSPResponse
public OCSPResponse getOCSPResponse()
-
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(java.io.InputStream input) throws java.io.IOException
Parse aCertificateStatusfrom anInputStream.- Parameters:
input- theInputStreamto parse from.- Returns:
- a
CertificateStatusobject. - Throws:
java.io.IOException
-
isCorrectType
protected static boolean isCorrectType(short statusType, java.lang.Object response)
-
-