blob: cc1c164926965ab1fc2314dfb3991da6c1d94d22 (
plain) (
blame)
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
|
using System;
namespace Org.BouncyCastle.Asn1.Crmf
{
public class SubsequentMessage
: DerInteger
{
public static readonly SubsequentMessage encrCert = new SubsequentMessage(0);
public static readonly SubsequentMessage challengeResp = new SubsequentMessage(1);
private SubsequentMessage(int value)
: base(value)
{
}
public static SubsequentMessage ValueOf(int value)
{
if (value == 0)
return encrCert;
if (value == 1)
return challengeResp;
throw new ArgumentException("unknown value: " + value, "value");
}
}
}
|