| 1 | package SBOM::CycloneDX::Enum::TlpClassification; | ||
| 2 | |||
| 3 | 16 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 16 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 16 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 16 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 16 | ▶ | use Exporter 'import'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 16 | our (@EXPORT_OK, %EXPORT_TAGS, %ENUM); | |
| 10 | |||
| 11 | 16 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 16 | %ENUM = ( | |
| 14 | |||
| 15 | # Traffic Light Protocol (TLP) v2.0 | ||
| 16 | CLEAR => 'CLEAR', | ||
| 17 | GREEN => 'GREEN', | ||
| 18 | AMBER => 'AMBER', | ||
| 19 | AMBER_AND_STRICT => 'AMBER_AND_STRICT', | ||
| 20 | RED => 'RED', | ||
| 21 | ); | ||
| 22 | |||
| 23 | 16 | require constant; | |
| 24 | 16 | constant->import(\%ENUM); | |
| 25 | |||
| 26 | 16 | @EXPORT_OK = sort keys %ENUM; | |
| 27 | 16 | %EXPORT_TAGS = (all => \@EXPORT_OK); | |
| 28 | |||
| 29 | } | ||
| 30 | |||
| 31 | 2 | ▶ | sub values { sort values %ENUM } |
|
Subroutine
values: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 32 | |||
| 33 | 16 | 1; | |
| 34 | |||
| 35 | =encoding utf-8 | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | SBOM::CycloneDX::Enum::TlpClassification - Traffic Light Protocol (TLP) Classification | ||
| 40 | |||
| 41 | =head1 SYNOPSIS | ||
| 42 | |||
| 43 | use SBOM::CycloneDX::Enum qw(TLP_CLASSIFICATION); | ||
| 44 | say TLP_CLASSIFICATION->GREEN; | ||
| 45 | |||
| 46 | use SBOM::CycloneDX::Enum::TlpClassification qw(:all); | ||
| 47 | say AMBER_AND_STRICT; | ||
| 48 | |||
| 49 | |||
| 50 | =head1 DESCRIPTION | ||
| 51 | |||
| 52 | L<SBOM::CycloneDX::Enum::TlpClassification> is ENUM package used by L<SBOM::CycloneDX>. | ||
| 53 | |||
| 54 | Traffic Light Protocol (TLP) is a classification system for identifying the | ||
| 55 | potential risk associated with artefact, including whether it is subject to | ||
| 56 | certain types of legal, financial, or technical threats. Refer to L<https://www.first.org/tlp/> | ||
| 57 | for further information. | ||
| 58 | |||
| 59 | The default classification is C<CLEAR>. | ||
| 60 | |||
| 61 | =head1 CONSTANTS | ||
| 62 | |||
| 63 | =over | ||
| 64 | |||
| 65 | =item * C<CLEAR>, The information is not subject to any restrictions as regards | ||
| 66 | the sharing. | ||
| 67 | |||
| 68 | =item * C<GREEN>, The information is subject to limited disclosure, and recipients | ||
| 69 | can share it within their community but not via publicly accessible channels. | ||
| 70 | |||
| 71 | =item * C<AMBER>, The information is subject to limited disclosure, and recipients | ||
| 72 | can only share it on a need-to-know basis within their organization and with clients. | ||
| 73 | |||
| 74 | =item * C<AMBER_AND_STRICT>, The information is subject to limited disclosure, | ||
| 75 | and recipients can only share it on a need-to-know basis within their organization. | ||
| 76 | |||
| 77 | =item * C<RED>, The information is subject to restricted distribution to individual | ||
| 78 | recipients only and must not be shared. | ||
| 79 | |||
| 80 | =back | ||
| 81 | |||
| 82 | =head1 SUPPORT | ||
| 83 | |||
| 84 | =head2 Bugs / Feature Requests | ||
| 85 | |||
| 86 | Please report any bugs or feature requests through the issue tracker | ||
| 87 | at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||
| 88 | You will be notified automatically of any progress on your issue. | ||
| 89 | |||
| 90 | =head2 Source Code | ||
| 91 | |||
| 92 | This is open source software. The code repository is available for | ||
| 93 | public review and contribution under the terms of the license. | ||
| 94 | |||
| 95 | L<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||
| 96 | |||
| 97 | git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git | ||
| 98 | |||
| 99 | |||
| 100 | =head1 AUTHOR | ||
| 101 | |||
| 102 | =over 4 | ||
| 103 | |||
| 104 | =item * Giuseppe Di Terlizzi <gdt@cpan.org> | ||
| 105 | |||
| 106 | =back | ||
| 107 | |||
| 108 | |||
| 109 | =head1 LICENSE AND COPYRIGHT | ||
| 110 | |||
| 111 | This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi. | ||
| 112 | |||
| 113 | This is free software; you can redistribute it and/or modify it under | ||
| 114 | the same terms as the Perl 5 programming language system itself. | ||
| 115 | |||
| 116 | =cut | ||