CycloneDX/CryptoProperties/CipherSuite.pm

filter: Statementstmt 67.3% 33 / 49 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 64.2% 9 / 14 Podpod 100% 1 / 1 totaltotal 58.1% 43 / 74 CC 6 SCAR 26.4
CC
6
Cov
56%
TO_JSON
42.0
__ANON__
1.1
__ANON__
1.1
CRAP 14.0
« CycloneDX/Standard/Level.pm ↑ Summary CycloneDX/PatentFamily.pm »
1 package SBOM::CycloneDX::CryptoProperties::CipherSuite;
2  
3 1 ▶use 5.010001;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 ▶use SBOM::CycloneDX::List;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Types::Standard qw(Str);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Types::TypeTiny qw(ArrayLike);
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 extends 'SBOM::CycloneDX::Base';
17  
18 1 has name => (is => 'rw', isa => Str);
19 0 ▶has algorithms => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new });
Subroutine __ANON__: not called CC=1 SCAR=1.2
20 0 ▶has identifiers => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new });
Subroutine __ANON__: not called CC=1 SCAR=1.2
21 0 ▶has tls_groups => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new });
Subroutine __ANON__: not called CC=1 SCAR=1.2
22 0 ▶has tls_signature_schemes => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new });
Subroutine __ANON__: not called CC=1 SCAR=1.2
23  
24 0 ▶sub TO_JSON {
Subroutine TO_JSON: not called CC=6 SCAR=37.4
Pod documented
25  
26 0 my $self = shift;
27  
28 0 my $json = {};
29  
30 0 ▶ $json->{name} = $self->name if $self->name;
Branch: 1 branch
BranchTrueFalseTotal
if $self->name 0 0 0
31 0 ▶ $json->{algorithms} = $self->algorithms if @{$self->algorithms};
Branch: 1 branch
BranchTrueFalseTotal
if @{$self->algorithms;} 0 0 0
32 0 ▶ $json->{identifiers} = $self->identifiers if @{$self->identifiers};
Branch: 1 branch
BranchTrueFalseTotal
if @{$self->identifiers;} 0 0 0
33 0 ▶ $json->{tlsGroups} = $self->tls_groups if @{$self->tls_groups};
Branch: 1 branch
BranchTrueFalseTotal
if @{$self->tls_groups;} 0 0 0
34 0 ▶ $json->{tlsSignatureSchemes} = $self->tls_signature_schemes if @{$self->tls_signature_schemes};
Branch: 1 branch
BranchTrueFalseTotal
if @{$self->tls_signature_schemes;} 0 0 0
35  
36 0 return $json;
37  
38 }
39  
40 1 1;
41  
42 =encoding utf-8
43  
44 =head1 NAME
45  
46 SBOM::CycloneDX::CryptoProperties::CipherSuite - Object representing
47 a cipher suite
48  
49 =head1 SYNOPSIS
50  
51 SBOM::CycloneDX::CryptoProperties::CipherSuite->new();
52  
53  
54 =head1 DESCRIPTION
55  
56 L<SBOM::CycloneDX::CryptoProperties::CipherSuite> specifies the object
57 representing a cipher suite.
58  
59 =head2 METHODS
60  
61 L<SBOM::CycloneDX::CryptoProperties::CipherSuite> inherits all methods from L<SBOM::CycloneDX::Base>
62 and implements the following new ones.
63  
64 =over
65  
66 =item SBOM::CycloneDX::CryptoProperties::CipherSuite->new( %PARAMS )
67  
68 Properties:
69  
70 =over
71  
72 =item * C<algorithms>, A list of algorithms related to the cipher suite.
73  
74 =item * C<identifiers>, A list of common identifiers for the cipher suite.
75  
76 =item * C<name>, A common name for the cipher suite.
77  
78 =item * C<tls_groups>, A list of TLS named groups (formerly known as curves) for
79 this cipher suite. These groups define the parameters for key exchange algorithms
80 like ECDHE.
81  
82 =item * C<tls_signature_schemes>, A list of signature schemes supported for cipher
83 suite. These schemes specify the algorithms used for digital signatures in TLS
84 handshakes and certificate verification.
85  
86 =back
87  
88 =item $cipher_suite->algorithms
89  
90 =item $cipher_suite->identifiers
91  
92 =item $cipher_suite->name
93  
94 =item $cipher_suite->tls_groups
95  
96 =item $cipher_suite->tls_signature_schemes
97  
98 =back
99  
100 =head1 SUPPORT
101  
102 =head2 Bugs / Feature Requests
103  
104 Please report any bugs or feature requests through the issue tracker
105 at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>.
106 You will be notified automatically of any progress on your issue.
107  
108 =head2 Source Code
109  
110 This is open source software. The code repository is available for
111 public review and contribution under the terms of the license.
112  
113 L<https://github.com/giterlizzi/perl-SBOM-CycloneDX>
114  
115 git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git
116  
117  
118 =head1 AUTHOR
119  
120 =over 4
121  
122 =item * Giuseppe Di Terlizzi <gdt@cpan.org>
123  
124 =back
125  
126  
127 =head1 LICENSE AND COPYRIGHT
128  
129 This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi.
130  
131 This is free software; you can redistribute it and/or modify it under
132 the same terms as the Perl 5 programming language system itself.
133  
134 =cut
« CycloneDX/Standard/Level.pm ↑ Summary CycloneDX/PatentFamily.pm »