Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rfc3114.py 1.9KB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # This file is part of pyasn1-modules software.
  3. #
  4. # Created by Russ Housley with assistance from asn1ate v.0.6.0.
  5. #
  6. # Copyright (c) 2019, Vigil Security, LLC
  7. # License: http://snmplabs.com/pyasn1/license.html
  8. #
  9. # TEST Company Classification Policies
  10. #
  11. # ASN.1 source from:
  12. # https://www.rfc-editor.org/rfc/rfc3114.txt
  13. #
  14. from pyasn1.type import char
  15. from pyasn1.type import namedval
  16. from pyasn1.type import univ
  17. from pyasn1_modules import rfc5755
  18. id_smime = univ.ObjectIdentifier((1, 2, 840, 113549, 1, 9, 16, ))
  19. id_tsp = id_smime + (7, )
  20. id_tsp_TEST_Amoco = id_tsp + (1, )
  21. class Amoco_SecurityClassification(univ.Integer):
  22. namedValues = namedval.NamedValues(
  23. ('amoco-general', 6),
  24. ('amoco-confidential', 7),
  25. ('amoco-highly-confidential', 8)
  26. )
  27. id_tsp_TEST_Caterpillar = id_tsp + (2, )
  28. class Caterpillar_SecurityClassification(univ.Integer):
  29. namedValues = namedval.NamedValues(
  30. ('caterpillar-public', 6),
  31. ('caterpillar-green', 7),
  32. ('caterpillar-yellow', 8),
  33. ('caterpillar-red', 9)
  34. )
  35. id_tsp_TEST_Whirlpool = id_tsp + (3, )
  36. class Whirlpool_SecurityClassification(univ.Integer):
  37. namedValues = namedval.NamedValues(
  38. ('whirlpool-public', 6),
  39. ('whirlpool-internal', 7),
  40. ('whirlpool-confidential', 8)
  41. )
  42. id_tsp_TEST_Whirlpool_Categories = id_tsp + (4, )
  43. class SecurityCategoryValues(univ.SequenceOf):
  44. componentType = char.UTF8String()
  45. # Example SecurityCategoryValues: "LAW DEPARTMENT USE ONLY"
  46. # Example SecurityCategoryValues: "HUMAN RESOURCES USE ONLY"
  47. # Also, the privacy mark in the security label can contain a string,
  48. # such as: "ATTORNEY-CLIENT PRIVILEGED INFORMATION"
  49. # Map of security category type OIDs to security category added
  50. # to the ones that are in rfc5755.py
  51. _securityCategoryMapUpdate = {
  52. id_tsp_TEST_Whirlpool_Categories: SecurityCategoryValues(),
  53. }
  54. rfc5755.securityCategoryMap.update(_securityCategoryMapUpdate)