init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
using System;
namespace Org.BouncyCastle.Asn1.X509;
public class CrlEntry : Asn1Encodable
{
internal Asn1Sequence seq;
internal DerInteger userCertificate;
internal Time revocationDate;
internal X509Extensions crlEntryExtensions;
public DerInteger UserCertificate => userCertificate;
public Time RevocationDate => revocationDate;
public X509Extensions Extensions
{
get
{
if (crlEntryExtensions == null && seq.Count == 3)
{
crlEntryExtensions = X509Extensions.GetInstance(seq[2]);
}
return crlEntryExtensions;
}
}
public CrlEntry(Asn1Sequence seq)
{
if (seq.Count < 2 || seq.Count > 3)
{
throw new ArgumentException("Bad sequence size: " + seq.Count);
}
this.seq = seq;
userCertificate = DerInteger.GetInstance(seq[0]);
revocationDate = Time.GetInstance(seq[1]);
}
public override Asn1Object ToAsn1Object()
{
return seq;
}
}