IssuingDistributionPoint.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. /**
  3. * IssuingDistributionPoint
  4. *
  5. * PHP version 5
  6. *
  7. * @category File
  8. * @package ASN1
  9. * @author Jim Wigginton <terrafrost@php.net>
  10. * @copyright 2016 Jim Wigginton
  11. * @license http://www.opensource.org/licenses/mit-license.html MIT License
  12. * @link http://phpseclib.sourceforge.net
  13. */
  14. namespace phpseclib\File\ASN1\Maps;
  15. use phpseclib\File\ASN1;
  16. /**
  17. * IssuingDistributionPoint
  18. *
  19. * @package ASN1
  20. * @author Jim Wigginton <terrafrost@php.net>
  21. * @access public
  22. */
  23. abstract class IssuingDistributionPoint
  24. {
  25. const MAP = [
  26. 'type' => ASN1::TYPE_SEQUENCE,
  27. 'children' => [
  28. 'distributionPoint' => [
  29. 'constant' => 0,
  30. 'optional' => true,
  31. 'explicit' => true
  32. ] + DistributionPointName::MAP,
  33. 'onlyContainsUserCerts' => [
  34. 'type' => ASN1::TYPE_BOOLEAN,
  35. 'constant' => 1,
  36. 'optional' => true,
  37. 'default' => false,
  38. 'implicit' => true
  39. ],
  40. 'onlyContainsCACerts' => [
  41. 'type' => ASN1::TYPE_BOOLEAN,
  42. 'constant' => 2,
  43. 'optional' => true,
  44. 'default' => false,
  45. 'implicit' => true
  46. ],
  47. 'onlySomeReasons' => [
  48. 'constant' => 3,
  49. 'optional' => true,
  50. 'implicit' => true
  51. ] + ReasonFlags::MAP,
  52. 'indirectCRL' => [
  53. 'type' => ASN1::TYPE_BOOLEAN,
  54. 'constant' => 4,
  55. 'optional' => true,
  56. 'default' => false,
  57. 'implicit' => true
  58. ],
  59. 'onlyContainsAttributeCerts' =>[
  60. 'type' => ASN1::TYPE_BOOLEAN,
  61. 'constant' => 5,
  62. 'optional' => true,
  63. 'default' => false,
  64. 'implicit' => true
  65. ]
  66. ]
  67. ];
  68. }