X509ObjectIdentifiers.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
  2. namespace Org.BouncyCastle.Asn1.X509
  3. {
  4. public abstract class X509ObjectIdentifiers
  5. {
  6. //
  7. // base id
  8. //
  9. internal const string ID = "2.5.4";
  10. public static readonly DerObjectIdentifier CommonName = new DerObjectIdentifier(ID + ".3");
  11. public static readonly DerObjectIdentifier CountryName = new DerObjectIdentifier(ID + ".6");
  12. public static readonly DerObjectIdentifier LocalityName = new DerObjectIdentifier(ID + ".7");
  13. public static readonly DerObjectIdentifier StateOrProvinceName = new DerObjectIdentifier(ID + ".8");
  14. public static readonly DerObjectIdentifier Organization = new DerObjectIdentifier(ID + ".10");
  15. public static readonly DerObjectIdentifier OrganizationalUnitName = new DerObjectIdentifier(ID + ".11");
  16. public static readonly DerObjectIdentifier id_at_telephoneNumber = new DerObjectIdentifier(ID + ".20");
  17. public static readonly DerObjectIdentifier id_at_name = new DerObjectIdentifier(ID + ".41");
  18. // id-SHA1 OBJECT IDENTIFIER ::=
  19. // {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 } //
  20. public static readonly DerObjectIdentifier IdSha1 = new DerObjectIdentifier("1.3.14.3.2.26");
  21. //
  22. // ripemd160 OBJECT IDENTIFIER ::=
  23. // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) hashAlgorithm(2) RipeMD-160(1)}
  24. //
  25. public static readonly DerObjectIdentifier RipeMD160 = new DerObjectIdentifier("1.3.36.3.2.1");
  26. //
  27. // ripemd160WithRSAEncryption OBJECT IDENTIFIER ::=
  28. // {iso(1) identified-organization(3) TeleTrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) rsaSignatureWithripemd160(2) }
  29. //
  30. public static readonly DerObjectIdentifier RipeMD160WithRsaEncryption = new DerObjectIdentifier("1.3.36.3.3.1.2");
  31. public static readonly DerObjectIdentifier IdEARsa = new DerObjectIdentifier("2.5.8.1.1");
  32. // id-pkix
  33. public static readonly DerObjectIdentifier IdPkix = new DerObjectIdentifier("1.3.6.1.5.5.7");
  34. //
  35. // private internet extensions
  36. //
  37. public static readonly DerObjectIdentifier IdPE = new DerObjectIdentifier(IdPkix + ".1");
  38. //
  39. // authority information access
  40. //
  41. public static readonly DerObjectIdentifier IdAD = new DerObjectIdentifier(IdPkix + ".48");
  42. public static readonly DerObjectIdentifier IdADCAIssuers = new DerObjectIdentifier(IdAD + ".2");
  43. public static readonly DerObjectIdentifier IdADOcsp = new DerObjectIdentifier(IdAD + ".1");
  44. //
  45. // OID for ocsp and crl uri in AuthorityInformationAccess extension
  46. //
  47. public static readonly DerObjectIdentifier OcspAccessMethod = IdADOcsp;
  48. public static readonly DerObjectIdentifier CrlAccessMethod = IdADCAIssuers;
  49. }
  50. }
  51. #endif