X509ObjectIdentifiers.cs 3.0 KB

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