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.Object
response
protected short
statusType
-
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 void
encode(java.io.OutputStream output)
Encode thisCertificateStatus
to anOutputStream
.org.bouncycastle.asn1.ocsp.OCSPResponse
getOCSPResponse()
java.lang.Object
getResponse()
short
getStatusType()
protected static boolean
isCorrectType(short statusType, java.lang.Object response)
static CertificateStatus
parse(java.io.InputStream input)
Parse aCertificateStatus
from anInputStream
.
-
-
-
Method Detail
-
getStatusType
public short getStatusType()
-
getResponse
public java.lang.Object getResponse()
-
getOCSPResponse
public org.bouncycastle.asn1.ocsp.OCSPResponse getOCSPResponse()
-
encode
public void encode(java.io.OutputStream output) throws java.io.IOException
Encode thisCertificateStatus
to anOutputStream
.- Parameters:
output
- theOutputStream
to encode to.- Throws:
java.io.IOException
-
parse
public static CertificateStatus parse(java.io.InputStream input) throws java.io.IOException
Parse aCertificateStatus
from anInputStream
.- Parameters:
input
- theInputStream
to parse from.- Returns:
- a
CertificateStatus
object. - Throws:
java.io.IOException
-
isCorrectType
protected static boolean isCorrectType(short statusType, java.lang.Object response)
-
-