summary refs log tree commit diff
path: root/crypto/src/asn1/cmp/CertConfirmContent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/cmp/CertConfirmContent.cs')
-rw-r--r--crypto/src/asn1/cmp/CertConfirmContent.cs14
1 files changed, 4 insertions, 10 deletions
diff --git a/crypto/src/asn1/cmp/CertConfirmContent.cs b/crypto/src/asn1/cmp/CertConfirmContent.cs
index e11826d6b..61b7451b4 100644
--- a/crypto/src/asn1/cmp/CertConfirmContent.cs
+++ b/crypto/src/asn1/cmp/CertConfirmContent.cs
@@ -14,7 +14,7 @@ namespace Org.BouncyCastle.Asn1.Cmp
 
         public static CertConfirmContent GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit)
         {
-            return GetInstance(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
+            return new CertConfirmContent(Asn1Sequence.GetInstance(taggedObject, declaredExplicit));
         }
 
         private readonly Asn1Sequence m_content;
@@ -24,20 +24,14 @@ namespace Org.BouncyCastle.Asn1.Cmp
             m_content = seq;
         }
 
-        public virtual CertStatus[] ToCertStatusArray()
-		{
-			return m_content.MapElements(CertStatus.GetInstance);
-		}
+        public virtual CertStatus[] ToCertStatusArray() => m_content.MapElements(CertStatus.GetInstance);
 
-		/**
+        /**
 		 * <pre>
 		 * CertConfirmContent ::= SEQUENCE OF CertStatus
 		 * </pre>
 		 * @return a basic ASN.1 object representation.
 		 */
-		public override Asn1Object ToAsn1Object()
-		{
-			return m_content;
-		}
+        public override Asn1Object ToAsn1Object() => m_content;
 	}
 }