summary refs log tree commit diff
path: root/crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 22:18:00 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 22:18:00 +0700
commit4e2bffacaddd47ffb9926dfc28f1e9725c9c929c (patch)
treee822d81703145f2a05029008f679751407caf9c5 /crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs
parentMark public sequence constructor Obsolete (diff)
downloadBouncyCastle.NET-ed25519-master.tar.xz
Refactoring in Asn1.X509.SigI HEAD master
Diffstat (limited to 'crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs')
-rw-r--r--crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs19
1 files changed, 9 insertions, 10 deletions
diff --git a/crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs b/crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs
index 682311adc..3ec50ae37 100644
--- a/crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs
+++ b/crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs
@@ -1,12 +1,11 @@
-using System;
-
 namespace Org.BouncyCastle.Asn1.X509.SigI
 {
-	/**
+    /**
 	 * Object Identifiers of SigI specifciation (German Signature Law
 	 * Interoperability specification).
 	 */
-	public sealed class SigIObjectIdentifiers
+    // TODO[api] Make static
+    public sealed class SigIObjectIdentifiers
 	{
 		private SigIObjectIdentifiers()
 		{
@@ -18,32 +17,32 @@ namespace Org.BouncyCastle.Asn1.X509.SigI
 		* Key purpose IDs for German SigI (Signature Interoperability
 		* Specification)
 		*/
-		public readonly static DerObjectIdentifier IdSigIKP = new DerObjectIdentifier(IdSigI + ".2");
+		public readonly static DerObjectIdentifier IdSigIKP = IdSigI.Branch("2");
 
 		/**
 		* Certificate policy IDs for German SigI (Signature Interoperability
 		* Specification)
 		*/
-		public readonly static DerObjectIdentifier IdSigICP = new DerObjectIdentifier(IdSigI + ".1");
+		public readonly static DerObjectIdentifier IdSigICP = IdSigI.Branch("1");
 
 		/**
 		* Other Name IDs for German SigI (Signature Interoperability Specification)
 		*/
-		public readonly static DerObjectIdentifier IdSigION = new DerObjectIdentifier(IdSigI + ".4");
+		public readonly static DerObjectIdentifier IdSigION = IdSigI.Branch("4");
 
 		/**
 		* To be used for for the generation of directory service certificates.
 		*/
-		public static readonly DerObjectIdentifier IdSigIKPDirectoryService = new DerObjectIdentifier(IdSigIKP + ".1");
+		public static readonly DerObjectIdentifier IdSigIKPDirectoryService = IdSigIKP.Branch("1");
 
 		/**
 		* ID for PersonalData
 		*/
-		public static readonly DerObjectIdentifier IdSigIONPersonalData = new DerObjectIdentifier(IdSigION + ".1");
+		public static readonly DerObjectIdentifier IdSigIONPersonalData = IdSigION.Branch("1");
 
 		/**
 		* Certificate is conform to german signature law.
 		*/
-		public static readonly DerObjectIdentifier IdSigICPSigConform = new DerObjectIdentifier(IdSigICP + ".1");
+		public static readonly DerObjectIdentifier IdSigICPSigConform = IdSigICP.Branch("1");
 	}
 }