diff options
author | MW <megan@cryptoworkshop.com> | 2019-01-17 16:16:20 +1100 |
---|---|---|
committer | MW <megan@cryptoworkshop.com> | 2019-01-17 16:16:20 +1100 |
commit | 3d578b981aad94eaee07fa444dd11f9323026e94 (patch) | |
tree | d64141ae1163cafb69a4e3fc26ab90b538d98ef6 /crypto/src/cmp/RevocationDetails.cs | |
parent | Missing from previous commit (diff) | |
download | BouncyCastle.NET-ed25519-3d578b981aad94eaee07fa444dd11f9323026e94.tar.xz |
CMS ArchiveControl
Diffstat (limited to 'crypto/src/cmp/RevocationDetails.cs')
-rw-r--r-- | crypto/src/cmp/RevocationDetails.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crypto/src/cmp/RevocationDetails.cs b/crypto/src/cmp/RevocationDetails.cs new file mode 100644 index 000000000..6e1cb34c3 --- /dev/null +++ b/crypto/src/cmp/RevocationDetails.cs @@ -0,0 +1,39 @@ +using Org.BouncyCastle.Asn1.Cmp; +using Org.BouncyCastle.Asn1.X509; +using Org.BouncyCastle.Math; + +namespace Org.BouncyCastle.Cmp +{ + public class RevocationDetails + { + private RevDetails revDetails; + + public RevocationDetails(RevDetails revDetails) + { + this.revDetails = revDetails; + } + + public X509Name Subject + { + get { return revDetails.CertDetails.Subject; } + } + + public X509Name Issuer + { + get { return revDetails.CertDetails.Issuer; } + } + + public BigInteger SerialNumber + { + get + { + return revDetails.CertDetails.SerialNumber.Value; // getCertDetails().getSerialNumber().getValue(); + } + } + + public RevDetails ToASN1Structure() + { + return revDetails; + } + } +} \ No newline at end of file |