diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 22:18:00 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 22:18:00 +0700 |
commit | 4e2bffacaddd47ffb9926dfc28f1e9725c9c929c (patch) | |
tree | e822d81703145f2a05029008f679751407caf9c5 /crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs | |
parent | Mark public sequence constructor Obsolete (diff) | |
download | BouncyCastle.NET-ed25519-4e2bffacaddd47ffb9926dfc28f1e9725c9c929c.tar.xz |
Diffstat (limited to 'crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs')
-rw-r--r-- | crypto/src/asn1/x509/sigi/SigIObjectIdentifiers.cs | 19 |
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"); } } |