line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::SAML2::Types; |
2
|
26
|
|
|
26
|
|
189
|
use warnings; |
|
26
|
|
|
|
|
67
|
|
|
26
|
|
|
|
|
910
|
|
3
|
26
|
|
|
26
|
|
157
|
use strict; |
|
26
|
|
|
|
|
59
|
|
|
26
|
|
|
|
|
1125
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.74'; # VERSION |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Custom Moose types for Net::SAML2 |
8
|
|
|
|
|
|
|
|
9
|
26
|
|
|
26
|
|
12450
|
use Types::Serialiser; |
|
26
|
|
|
|
|
42105
|
|
|
26
|
|
|
|
|
1374
|
|
10
|
26
|
|
|
|
|
230
|
use MooseX::Types -declare => [ |
11
|
|
|
|
|
|
|
qw( |
12
|
|
|
|
|
|
|
XsdID |
13
|
|
|
|
|
|
|
SAMLRequestType |
14
|
|
|
|
|
|
|
signingAlgorithm |
15
|
|
|
|
|
|
|
) |
16
|
26
|
|
|
26
|
|
194
|
]; |
|
26
|
|
|
|
|
54
|
|
17
|
|
|
|
|
|
|
|
18
|
26
|
|
|
26
|
|
156266
|
use MooseX::Types::Moose qw(Str Int Num Bool ArrayRef HashRef Item); |
|
26
|
|
|
|
|
59
|
|
|
26
|
|
|
|
|
217
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
subtype XsdID, as Str, |
22
|
|
|
|
|
|
|
where { |
23
|
|
|
|
|
|
|
return 0 unless $_ =~ /^[a-zA-Z_]/; |
24
|
|
|
|
|
|
|
return 0 if $_ =~ /[^a-zA-Z0-9_\.\-]/; |
25
|
|
|
|
|
|
|
return 1; |
26
|
|
|
|
|
|
|
}, |
27
|
|
|
|
|
|
|
message { "'$_' is not a valid xsd:ID" }; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
subtype SAMLRequestType, as enum( |
31
|
|
|
|
|
|
|
[ |
32
|
|
|
|
|
|
|
qw(SAMLRequest SAMLResponse) |
33
|
|
|
|
|
|
|
] |
34
|
|
|
|
|
|
|
), |
35
|
|
|
|
|
|
|
message { "'$_' is not a SAML Request type" }; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
subtype signingAlgorithm, as enum( |
40
|
|
|
|
|
|
|
[ |
41
|
|
|
|
|
|
|
qw(sha244 sha256 sha384 sha512 sha1) |
42
|
|
|
|
|
|
|
] |
43
|
|
|
|
|
|
|
), |
44
|
|
|
|
|
|
|
message { "'$_' is not a supported signingAlgorithm" }; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
1; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=pod |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=encoding UTF-8 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 NAME |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Net::SAML2::Types - Custom Moose types for Net::SAML2 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 VERSION |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
version 0.74 |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 XsdID |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
The type xsd:ID is used for an attribute that uniquely identifies an element in an XML document. An xsd:ID value must be an NCName. This means that it must start with a letter or underscore, and can only contain letters, digits, underscores, hyphens, and periods. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 SAMLRequestType |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Enum which consists of two options: SAMLRequest and SAMLResponse |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 signingAlgorithm |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Enum which consists of the following options: sha244, sha256, sha384, sha512 |
73
|
|
|
|
|
|
|
and sha1 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 AUTHORS |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=over 4 |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=item * |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Chris Andrews <chrisa@cpan.org> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=item * |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Timothy Legge <timlegge@gmail.com> |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=back |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Venda Ltd, see the CONTRIBUTORS file for others. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
94
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=cut |