| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package STIX::Observable::Mutex; |
|
2
|
|
|
|
|
|
|
|
|
3
|
24
|
|
|
24
|
|
520
|
use 5.010001; |
|
|
24
|
|
|
|
|
103
|
|
|
4
|
24
|
|
|
24
|
|
146
|
use strict; |
|
|
24
|
|
|
|
|
52
|
|
|
|
24
|
|
|
|
|
762
|
|
|
5
|
24
|
|
|
24
|
|
147
|
use warnings; |
|
|
24
|
|
|
|
|
59
|
|
|
|
24
|
|
|
|
|
1722
|
|
|
6
|
24
|
|
|
24
|
|
160
|
use utf8; |
|
|
24
|
|
|
|
|
57
|
|
|
|
24
|
|
|
|
|
215
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
24
|
|
|
24
|
|
1124
|
use Types::Standard qw(Str); |
|
|
24
|
|
|
|
|
56
|
|
|
|
24
|
|
|
|
|
274
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
24
|
|
|
24
|
|
41538
|
use Moo; |
|
|
24
|
|
|
|
|
68
|
|
|
|
24
|
|
|
|
|
189
|
|
|
11
|
24
|
|
|
24
|
|
9992
|
use namespace::autoclean; |
|
|
24
|
|
|
|
|
99
|
|
|
|
24
|
|
|
|
|
231
|
|
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
extends 'STIX::Observable'; |
|
14
|
|
|
|
|
|
|
|
|
15
|
24
|
|
|
|
|
2647
|
use constant SCHEMA => |
|
16
|
24
|
|
|
24
|
|
2837
|
'http://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/observables/mutex.json'; |
|
|
24
|
|
|
|
|
69
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
24
|
|
|
|
|
2025
|
use constant PROPERTIES => |
|
19
|
24
|
|
|
24
|
|
185
|
(qw[type id], qw[spec_version object_marking_refs granular_markings defanged extensions], qw[name]); |
|
|
24
|
|
|
|
|
69
|
|
|
20
|
|
|
|
|
|
|
|
|
21
|
24
|
|
|
24
|
|
158
|
use constant STIX_OBJECT => 'SCO'; |
|
|
24
|
|
|
|
|
95
|
|
|
|
24
|
|
|
|
|
1811
|
|
|
22
|
24
|
|
|
24
|
|
202
|
use constant STIX_OBJECT_TYPE => 'mutex'; |
|
|
24
|
|
|
|
|
91
|
|
|
|
24
|
|
|
|
|
2896
|
|
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has name => (is => 'rw', isa => Str, required => 1); |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=encoding utf-8 |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
STIX::Observable::Mutex - STIX Cyber-observable Object (SCO) - Mutex |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
use STIX::Observable::Mutex; |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $mutex = STIX::Observable::Mutex->new(); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
The Mutex Object represents the properties of a mutual exclusion (mutex) |
|
44
|
|
|
|
|
|
|
object. |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 METHODS |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L inherits all methods from L |
|
50
|
|
|
|
|
|
|
and implements the following new ones. |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=over |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item STIX::Observable::Mutex->new(%properties) |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Create a new instance of L. |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item $mutex->id |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item $mutex->name |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Specifies the name of the mutex object. |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item $mutex->type |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
The value of this property MUST be C. |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=back |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 HELPERS |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=over |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=item $mutex->TO_JSON |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Encode the object in JSON. |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item $mutex->to_hash |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Return the object HASH. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item $mutex->to_string |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Encode the object in JSON. |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=item $mutex->validate |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Validate the object using JSON Schema |
|
90
|
|
|
|
|
|
|
(see L). |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=back |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head1 SUPPORT |
|
96
|
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head2 Bugs / Feature Requests |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Please report any bugs or feature requests through the issue tracker |
|
100
|
|
|
|
|
|
|
at L. |
|
101
|
|
|
|
|
|
|
You will be notified automatically of any progress on your issue. |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 Source Code |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
This is open source software. The code repository is available for |
|
106
|
|
|
|
|
|
|
public review and contribution under the terms of the license. |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
L |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
git clone https://github.com/giterlizzi/perl-STIX.git |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head1 AUTHOR |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=over 4 |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=item * Giuseppe Di Terlizzi |
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=back |
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
This software is copyright (c) 2024 by Giuseppe Di Terlizzi. |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
|
127
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
|
128
|
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=cut |