| 1 | package SBOM::CycloneDX::Enum::RelatedCryptoMaterialState; | ||
| 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 | PRE_ACTIVATION => 'pre-activation', | ||
| 15 | ACTIVE => 'active', | ||
| 16 | SUSPENDED => 'suspended', | ||
| 17 | DEACTIVATED => 'deactivated', | ||
| 18 | COMPROMISED => 'compromised', | ||
| 19 | DESTROYED => 'destroyed', | ||
| 20 | ); | ||
| 21 | |||
| 22 | 16 | require constant; | |
| 23 | 16 | constant->import(\%ENUM); | |
| 24 | |||
| 25 | 16 | @EXPORT_OK = sort keys %ENUM; | |
| 26 | 16 | %EXPORT_TAGS = (all => \@EXPORT_OK); | |
| 27 | |||
| 28 | } | ||
| 29 | |||
| 30 | 2 | ▶ | sub values { sort values %ENUM } |
|
Subroutine
values: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | |||
| 32 | |||
| 33 | 16 | 1; | |
| 34 | |||
| 35 | =encoding utf-8 | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | SBOM::CycloneDX::Enum::RelatedCryptoMaterialState - The key state as defined by NIST SP 800-57 | ||
| 40 | |||
| 41 | =head1 SYNOPSIS | ||
| 42 | |||
| 43 | use SBOM::CycloneDX::Enum qw(RELATED_CRYPTO_MATERIAL_STATE); | ||
| 44 | |||
| 45 | say RELATED_CRYPTO_MATERIAL_STATE->PRE_ACTIVATION; | ||
| 46 | |||
| 47 | |||
| 48 | use SBOM::CycloneDX::Enum::RelatedCryptoMaterialState; | ||
| 49 | |||
| 50 | say SBOM::CycloneDX::Enum::RelatedCryptoMaterialState->SUSPENDED; | ||
| 51 | |||
| 52 | |||
| 53 | use SBOM::CycloneDX::Enum::RelatedCryptoMaterialState qw(:all); | ||
| 54 | |||
| 55 | say COMPROMISED; | ||
| 56 | |||
| 57 | |||
| 58 | =head1 DESCRIPTION | ||
| 59 | |||
| 60 | L<SBOM::CycloneDX::Enum::RelatedCryptoMaterialState> is ENUM package used by L<SBOM::CycloneDX>. | ||
| 61 | |||
| 62 | |||
| 63 | =head1 CONSTANTS | ||
| 64 | |||
| 65 | =over | ||
| 66 | |||
| 67 | =item * C<PRE_ACTIVATION> | ||
| 68 | |||
| 69 | =item * C<ACTIVE> | ||
| 70 | |||
| 71 | =item * C<SUSPENDED> | ||
| 72 | |||
| 73 | =item * C<DEACTIVATED> | ||
| 74 | |||
| 75 | =item * C<COMPROMISED> | ||
| 76 | |||
| 77 | =item * C<DESTROYED> | ||
| 78 | |||
| 79 | =back | ||
| 80 | |||
| 81 | =head1 SUPPORT | ||
| 82 | |||
| 83 | =head2 Bugs / Feature Requests | ||
| 84 | |||
| 85 | Please report any bugs or feature requests through the issue tracker | ||
| 86 | at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||
| 87 | You will be notified automatically of any progress on your issue. | ||
| 88 | |||
| 89 | =head2 Source Code | ||
| 90 | |||
| 91 | This is open source software. The code repository is available for | ||
| 92 | public review and contribution under the terms of the license. | ||
| 93 | |||
| 94 | L<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||
| 95 | |||
| 96 | git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git | ||
| 97 | |||
| 98 | |||
| 99 | =head1 AUTHOR | ||
| 100 | |||
| 101 | =over 4 | ||
| 102 | |||
| 103 | =item * Giuseppe Di Terlizzi <gdt@cpan.org> | ||
| 104 | |||
| 105 | =back | ||
| 106 | |||
| 107 | |||
| 108 | =head1 LICENSE AND COPYRIGHT | ||
| 109 | |||
| 110 | This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi. | ||
| 111 | |||
| 112 | This is free software; you can redistribute it and/or modify it under | ||
| 113 | the same terms as the Perl 5 programming language system itself. | ||
| 114 | |||
| 115 | =cut | ||