Package org.bouncycastle.cert.ocsp
Class OCSPResp
- java.lang.Object
-
- org.bouncycastle.cert.ocsp.OCSPResp
-
public class OCSPResp extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
INTERNAL_ERROR
static int
MALFORMED_REQUEST
static int
SIG_REQUIRED
static int
SUCCESSFUL
static int
TRY_LATER
static int
UNAUTHORIZED
-
Constructor Summary
Constructors Constructor Description OCSPResp(byte[] resp)
OCSPResp(InputStream resp)
OCSPResp(org.bouncycastle.asn1.ocsp.OCSPResponse resp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
byte[]
getEncoded()
return the ASN.1 encoded representation of this object.Object
getResponseObject()
int
getStatus()
int
hashCode()
org.bouncycastle.asn1.ocsp.OCSPResponse
toASN1Structure()
-
-
-
Field Detail
-
SUCCESSFUL
public static final int SUCCESSFUL
- See Also:
- Constant Field Values
-
MALFORMED_REQUEST
public static final int MALFORMED_REQUEST
- See Also:
- Constant Field Values
-
INTERNAL_ERROR
public static final int INTERNAL_ERROR
- See Also:
- Constant Field Values
-
TRY_LATER
public static final int TRY_LATER
- See Also:
- Constant Field Values
-
SIG_REQUIRED
public static final int SIG_REQUIRED
- See Also:
- Constant Field Values
-
UNAUTHORIZED
public static final int UNAUTHORIZED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OCSPResp
public OCSPResp(org.bouncycastle.asn1.ocsp.OCSPResponse resp)
-
OCSPResp
public OCSPResp(byte[] resp) throws IOException
- Throws:
IOException
-
OCSPResp
public OCSPResp(InputStream resp) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getStatus
public int getStatus()
-
getResponseObject
public Object getResponseObject() throws OCSPException
- Throws:
OCSPException
-
getEncoded
public byte[] getEncoded() throws IOException
return the ASN.1 encoded representation of this object.- Throws:
IOException
-
toASN1Structure
public org.bouncycastle.asn1.ocsp.OCSPResponse toASN1Structure()
-
-