01: package org.bouncycastle.asn1.ocsp;
02:
03: import org.bouncycastle.asn1.DEREnumerated;
04:
05: public class OCSPResponseStatus extends DEREnumerated {
06: public static final int SUCCESSFUL = 0;
07: public static final int MALFORMED_REQUEST = 1;
08: public static final int INTERNAL_ERROR = 2;
09: public static final int TRY_LATER = 3;
10: public static final int SIG_REQUIRED = 5;
11: public static final int UNAUTHORIZED = 6;
12:
13: /**
14: * The OCSPResponseStatus enumeration.
15: * <pre>
16: * OCSPResponseStatus ::= ENUMERATED {
17: * successful (0), --Response has valid confirmations
18: * malformedRequest (1), --Illegal confirmation request
19: * internalError (2), --Internal error in issuer
20: * tryLater (3), --Try again later
21: * --(4) is not used
22: * sigRequired (5), --Must sign the request
23: * unauthorized (6) --Request unauthorized
24: * }
25: * </pre>
26: */
27: public OCSPResponseStatus(int value) {
28: super (value);
29: }
30:
31: public OCSPResponseStatus(DEREnumerated value) {
32: super(value.getValue().intValue());
33: }
34: }
|