diff options
-rw-r--r-- | crypto/src/asn1/cmp/CertAnnContent.cs | 4 | ||||
-rw-r--r-- | crypto/src/asn1/cmp/NestedMessageContent.cs | 2 | ||||
-rw-r--r-- | crypto/src/asn1/cmp/OobCert.cs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/asn1/cmp/CertAnnContent.cs b/crypto/src/asn1/cmp/CertAnnContent.cs index df0188746..30b1fad2f 100644 --- a/crypto/src/asn1/cmp/CertAnnContent.cs +++ b/crypto/src/asn1/cmp/CertAnnContent.cs @@ -12,7 +12,7 @@ namespace Org.BouncyCastle.Asn1.Cmp public class CertAnnContent : CmpCertificate { - public static CertAnnContent GetInstance(object obj) + public static new CertAnnContent GetInstance(object obj) { // TODO[cmp] if (obj == null) @@ -46,7 +46,7 @@ namespace Org.BouncyCastle.Asn1.Cmp throw new ArgumentException("Invalid object: " + Platform.GetTypeName(obj), nameof(obj)); } - public static CertAnnContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) + public static new CertAnnContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) { // TODO[cmp] if (taggedObject == null) diff --git a/crypto/src/asn1/cmp/NestedMessageContent.cs b/crypto/src/asn1/cmp/NestedMessageContent.cs index 907fc7135..0cb2c080b 100644 --- a/crypto/src/asn1/cmp/NestedMessageContent.cs +++ b/crypto/src/asn1/cmp/NestedMessageContent.cs @@ -6,7 +6,7 @@ public class NestedMessageContent : PkiMessages { - public static NestedMessageContent GetInstance(object obj) + public static new NestedMessageContent GetInstance(object obj) { if (obj is NestedMessageContent nestedMessageContent) return nestedMessageContent; diff --git a/crypto/src/asn1/cmp/OobCert.cs b/crypto/src/asn1/cmp/OobCert.cs index d47b87215..82d5afe55 100644 --- a/crypto/src/asn1/cmp/OobCert.cs +++ b/crypto/src/asn1/cmp/OobCert.cs @@ -12,7 +12,7 @@ namespace Org.BouncyCastle.Asn1.Cmp public class OobCert : CmpCertificate { - public static OobCert GetInstance(object obj) + public static new OobCert GetInstance(object obj) { if (obj == null) return null; @@ -44,7 +44,7 @@ namespace Org.BouncyCastle.Asn1.Cmp throw new ArgumentException("Invalid object: " + Platform.GetTypeName(obj), nameof(obj)); } - public static OobCert GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) + public static new OobCert GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) { if (taggedObject == null) return null; |