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");
}
}
|