| 1 | package SBOM::CycloneDX::CryptoProperties::Ikev2TransformType; | ||||||||||
| 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 | # bom-ref like | ||||||||||
| 19 | 0 | ▶ | has encr => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 20 | |||||||||||
| 21 | # bom-ref like | ||||||||||
| 22 | 0 | ▶ | has prf => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 23 | |||||||||||
| 24 | # bom-ref like | ||||||||||
| 25 | 0 | ▶ | has integ => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | # bom-ref like | ||||||||||
| 28 | 0 | ▶ | has ke => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 29 | |||||||||||
| 30 | # bom-ref like | ||||||||||
| 31 | 0 | ▶ | has esn => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 32 | |||||||||||
| 33 | # bom-ref like | ||||||||||
| 34 | 0 | ▶ | has auth => (is => 'rw', isa => ArrayLike [Str], default => sub { SBOM::CycloneDX::List->new }); | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 35 | |||||||||||
| 36 | |||||||||||
| 37 | 0 | ▶ | sub TO_JSON { | ||||||||
|
Subroutine
TO_JSON: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 38 | |||||||||||
| 39 | 0 | my $self = shift; | |||||||||
| 40 | |||||||||||
| 41 | 0 | my $json = {}; | |||||||||
| 42 | |||||||||||
| 43 | 0 | ▶ | $json->{encr} = $self->encr if @{$self->encr}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 44 | 0 | ▶ | $json->{prf} = $self->prf if @{$self->prf}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | 0 | ▶ | $json->{integ} = $self->integ if @{$self->integ}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 46 | 0 | ▶ | $json->{ke} = $self->ke if @{$self->ke}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 47 | 0 | ▶ | $json->{esn} = $self->esn if @{$self->esn}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 48 | 0 | ▶ | $json->{auth} = $self->auth if @{$self->auth}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 49 | |||||||||||
| 50 | 0 | return $json; | |||||||||
| 51 | |||||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | 1 | 1; | |||||||||
| 55 | |||||||||||
| 56 | =encoding utf-8 | ||||||||||
| 57 | |||||||||||
| 58 | =head1 NAME | ||||||||||
| 59 | |||||||||||
| 60 | SBOM::CycloneDX::CryptoProperties::Ikev2TransformType - IKEv2 Transform Types | ||||||||||
| 61 | |||||||||||
| 62 | =head1 SYNOPSIS | ||||||||||
| 63 | |||||||||||
| 64 | SBOM::CycloneDX::CryptoProperties::Ikev2TransformType->new(); | ||||||||||
| 65 | |||||||||||
| 66 | |||||||||||
| 67 | =head1 DESCRIPTION | ||||||||||
| 68 | |||||||||||
| 69 | L<SBOM::CycloneDX::CryptoProperties::Ikev2TransformType> specifies the IKEv2 | ||||||||||
| 70 | transform types supported (types 1-4), defined in RFC 7296 section 3.3.2 | ||||||||||
| 71 | (L<https://www.ietf.org/rfc/rfc7296.html#section-3.3.2>), and additional properties. | ||||||||||
| 72 | |||||||||||
| 73 | =head2 METHODS | ||||||||||
| 74 | |||||||||||
| 75 | L<SBOM::CycloneDX::CryptoProperties::Ikev2TransformType> inherits all methods from L<SBOM::CycloneDX::Base> | ||||||||||
| 76 | and implements the following new ones. | ||||||||||
| 77 | |||||||||||
| 78 | =over | ||||||||||
| 79 | |||||||||||
| 80 | =item SBOM::CycloneDX::CryptoProperties::Ikev2TransformType->new( %PARAMS ) | ||||||||||
| 81 | |||||||||||
| 82 | Properties: | ||||||||||
| 83 | |||||||||||
| 84 | =over | ||||||||||
| 85 | |||||||||||
| 86 | =item * C<auth>, IKEv2 Authentication method | ||||||||||
| 87 | |||||||||||
| 88 | =item * C<encr>, Transform Type 1: encryption algorithms | ||||||||||
| 89 | |||||||||||
| 90 | =item * C<esn>, Specifies if an Extended Sequence Number (ESN) is used. | ||||||||||
| 91 | |||||||||||
| 92 | =item * C<integ>, Transform Type 3: integrity algorithms | ||||||||||
| 93 | |||||||||||
| 94 | =item * C<ke>, Transform Type 4: Key Exchange Method (KE) per RFC | ||||||||||
| 95 | 9370 (L<https://www.ietf.org/rfc/rfc9370.html>), formerly called | ||||||||||
| 96 | Diffie-Hellman Group (D-H). | ||||||||||
| 97 | |||||||||||
| 98 | =item * C<prf>, Transform Type 2: pseudorandom functions | ||||||||||
| 99 | |||||||||||
| 100 | =back | ||||||||||
| 101 | |||||||||||
| 102 | =item $ikev2_transform_type->auth | ||||||||||
| 103 | |||||||||||
| 104 | =item $ikev2_transform_type->encr | ||||||||||
| 105 | |||||||||||
| 106 | =item $ikev2_transform_type->esn | ||||||||||
| 107 | |||||||||||
| 108 | =item $ikev2_transform_type->integ | ||||||||||
| 109 | |||||||||||
| 110 | =item $ikev2_transform_type->ke | ||||||||||
| 111 | |||||||||||
| 112 | =item $ikev2_transform_type->prf | ||||||||||
| 113 | |||||||||||
| 114 | =back | ||||||||||
| 115 | |||||||||||
| 116 | |||||||||||
| 117 | |||||||||||
| 118 | =head1 SUPPORT | ||||||||||
| 119 | |||||||||||
| 120 | =head2 Bugs / Feature Requests | ||||||||||
| 121 | |||||||||||
| 122 | Please report any bugs or feature requests through the issue tracker | ||||||||||
| 123 | at L<https://github.com/giterlizzi/perl-SBOM-CycloneDX/issues>. | ||||||||||
| 124 | You will be notified automatically of any progress on your issue. | ||||||||||
| 125 | |||||||||||
| 126 | =head2 Source Code | ||||||||||
| 127 | |||||||||||
| 128 | This is open source software. The code repository is available for | ||||||||||
| 129 | public review and contribution under the terms of the license. | ||||||||||
| 130 | |||||||||||
| 131 | L<https://github.com/giterlizzi/perl-SBOM-CycloneDX> | ||||||||||
| 132 | |||||||||||
| 133 | git clone https://github.com/giterlizzi/perl-SBOM-CycloneDX.git | ||||||||||
| 134 | |||||||||||
| 135 | |||||||||||
| 136 | =head1 AUTHOR | ||||||||||
| 137 | |||||||||||
| 138 | =over 4 | ||||||||||
| 139 | |||||||||||
| 140 | =item * Giuseppe Di Terlizzi <gdt@cpan.org> | ||||||||||
| 141 | |||||||||||
| 142 | =back | ||||||||||
| 143 | |||||||||||
| 144 | |||||||||||
| 145 | =head1 LICENSE AND COPYRIGHT | ||||||||||
| 146 | |||||||||||
| 147 | This software is copyright (c) 2025-2026 by Giuseppe Di Terlizzi. | ||||||||||
| 148 | |||||||||||
| 149 | This is free software; you can redistribute it and/or modify it under | ||||||||||
| 150 | the same terms as the Perl 5 programming language system itself. | ||||||||||
| 151 | |||||||||||
| 152 | =cut | ||||||||||