CycloneDX/Enum/ProtocolType.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.6% 29 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« CycloneDX/Enum/PatentLegalStatus.pm ↑ Summary CycloneDX/Enum/RelatedCryptoMaterialState.pm »
1 package SBOM::CycloneDX::Enum::ProtocolType;
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 TLS => 'tls',
15 SSH => 'ssh',
16 IPSEC => 'ipsec',
17 IKE => 'ike',
18 SSTP => 'sstp',
19 WPA => 'wpa',
20 DTLS => 'dtls',
21 QUIC => 'quic',
22 EAP_AKA => 'eap-aka',
23 EAP_AKA_PRIME => 'eap-aka-prime',
24 PRINS => 'prins',
25 X_5G_AKA => '5g-aka',
26 OTHER => 'other',
27 UNKNOWN => 'unknown',
28 );
29  
30 16 require constant;
31 16 constant->import(\%ENUM);
32  
33 16 @EXPORT_OK = sort keys %ENUM;
34 16 %EXPORT_TAGS = (all => \@EXPORT_OK);
35  
36 }
37  
38 2 ▶sub values { sort values %ENUM }
Subroutine values: called CC=1 SCAR=0.0
Pod undocumented
39  
40  
41 16 1;
42  
43 =encoding utf-8
44  
45 =head1 NAME
46  
47 SBOM::CycloneDX::Enum::ProtocolType - The protocol type used by cryptographic assets
48  
49 =head1 SYNOPSIS
50  
51 use SBOM::CycloneDX::Enum qw(PROTOCOL_TYPE);
52  
53 say PROTOCOL_TYPE->IPSEC;
54  
55  
56 use SBOM::CycloneDX::Enum::ProtocolType;
57  
58 say SBOM::CycloneDX::Enum::ProtocolType->SSH;
59  
60  
61 use SBOM::CycloneDX::Enum::ProtocolType qw(:all);
62  
63 say IKE;
64  
65  
66 =head1 DESCRIPTION
67  
68 L<SBOM::CycloneDX::Enum::ProtocolType> is ENUM package used by L<SBOM::CycloneDX::CryptoProperties::ProtocolProperties>.
69  
70  
71 =head1 CONSTANTS
72  
73 =over
74  
75 =item * C<TLS>, Transport Layer Security
76  
77 =item * C<SSH>, Secure Shell
78  
79 =item * C<IPSEC>, Internet Protocol Security
80  
81 =item * C<IKE>, Internet Key Exchange
82  
83 =item * C<SSTP>, Secure Socket Tunneling Protocol
84  
85 =item * C<WPA>, Wi-Fi Protected Access
86  
87 =item * C<DTLS>, Datagram Transport Layer Security
88  
89 =item * C<QUIC>, Quick UDP Internet Connections
90  
91 =item * C<EAP_AKA>, Extensible Authentication Protocol variant
92  
93 =item * C<EAP_AKA_PRIME>, Enhanced version of EAP-AKA
94  
95 =item * C<PRINS>, Protection of Inter-Network Signaling
96  
97 =item * C<X_5G_AKA> (5g-aka), Authentication and Key Agreement for 5G
98  
99 =item * C<OTHER>, Another protocol type
100  
101 =item * C<UNKNOWN>, The protocol type is not known
102  
103 =back
104  
105 =head1 SUPPORT
106  
107 =head2 Bugs / Feature Requests
108  
109 Please report any bugs or feature requests through the issue tracker
110 at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>.
111 You will be notified automatically of any progress on your issue.
112  
113 =head2 Source Code
114  
115 This is open source software. The code repository is available for
116 public review and contribution under the terms of the license.
117  
118 L<https://github.com/giterlizzi/perl-SBOM-CycloneDX>
119  
120 git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
121  
122  
123 =head1 AUTHOR
124  
125 =over 4
126  
127 =item * Giuseppe Di Terlizzi <gdt@cpan.org>
128  
129 =back
130  
131  
132 =head1 LICENSE AND COPYRIGHT
133  
134 This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
135  
136 This is free software; you can redistribute it and/or modify it under
137 the same terms as the Perl 5 programming language system itself.
138  
139 =cut
« CycloneDX/Enum/PatentLegalStatus.pm ↑ Summary CycloneDX/Enum/RelatedCryptoMaterialState.pm »