You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
686 B
27 lines
686 B
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");
|
|
}
|
|
}
|
|
}
|
|
|