diff options
Diffstat (limited to 'crypto/src/asn1/crmf/CertId.cs')
-rw-r--r-- | crypto/src/asn1/crmf/CertId.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/crmf/CertId.cs b/crypto/src/asn1/crmf/CertId.cs index c9f66b065..a1eabea11 100644 --- a/crypto/src/asn1/crmf/CertId.cs +++ b/crypto/src/asn1/crmf/CertId.cs @@ -16,10 +16,11 @@ namespace Org.BouncyCastle.Asn1.Crmf return new CertId(Asn1Sequence.GetInstance(obj)); } - public static CertId GetInstance(Asn1TaggedObject obj, bool isExplicit) - { - return new CertId(Asn1Sequence.GetInstance(obj, isExplicit)); - } + public static CertId GetInstance(Asn1TaggedObject obj, bool isExplicit) => + new CertId(Asn1Sequence.GetInstance(obj, isExplicit)); + + public static CertId GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new CertId(Asn1Sequence.GetTagged(taggedObject, declaredExplicit)); private readonly GeneralName m_issuer; private readonly DerInteger m_serialNumber; |