blob: aa225f934fd11522a8a68d9c9ce24787117c8813 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
package org.bouncycastle.asn1.ocsp;
import java.math.BigInteger;
import org.bouncycastle.asn1.ASN1Enumerated;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
public class OCSPResponseStatus
extends ASN1Object
{
public static final int SUCCESSFUL = 0;
public static final int MALFORMED_REQUEST = 1;
public static final int INTERNAL_ERROR = 2;
public static final int TRY_LATER = 3;
public static final int SIG_REQUIRED = 5;
public static final int UNAUTHORIZED = 6;
private ASN1Enumerated value;
/**
* The OCSPResponseStatus enumeration.
* <pre>
* OCSPResponseStatus ::= ENUMERATED {
* successful (0), --Response has valid confirmations
* malformedRequest (1), --Illegal confirmation request
* internalError (2), --Internal error in issuer
* tryLater (3), --Try again later
* --(4) is not used
* sigRequired (5), --Must sign the request
* unauthorized (6) --Request unauthorized
* }
* </pre>
*/
public OCSPResponseStatus(
int value)
{
this(new ASN1Enumerated(value));
}
private OCSPResponseStatus(
ASN1Enumerated value)
{
this.value = value;
}
public static OCSPResponseStatus getInstance(
Object obj)
{
if (obj instanceof OCSPResponseStatus)
{
return (OCSPResponseStatus)obj;
}
else if (obj != null)
{
return new OCSPResponseStatus(ASN1Enumerated.getInstance(obj));
}
return null;
}
public BigInteger getValue()
{
return value.getValue();
}
public ASN1Primitive toASN1Primitive()
{
return value;
}
}
|