line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package XML::SRS::Password; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1453
|
use Moose; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use PRANG::Graph; |
6
|
|
|
|
|
|
|
use Crypt::Password; |
7
|
|
|
|
|
|
|
use Moose::Util::TypeConstraints; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
class_type "Crypt::Password"; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has_attr 'crypted' => |
12
|
|
|
|
|
|
|
is => "ro", |
13
|
|
|
|
|
|
|
isa => "Crypt::Password", |
14
|
|
|
|
|
|
|
handles => [qw/check/], |
15
|
|
|
|
|
|
|
xml_name => "Password", |
16
|
|
|
|
|
|
|
required => 1, |
17
|
|
|
|
|
|
|
coerce => 1, |
18
|
|
|
|
|
|
|
; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
coerce "Crypt::Password" |
21
|
|
|
|
|
|
|
=> from "Str" |
22
|
|
|
|
|
|
|
=> via { |
23
|
|
|
|
|
|
|
password($_); |
24
|
|
|
|
|
|
|
}; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
with 'XML::SRS::Node'; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
coerce __PACKAGE__ |
29
|
|
|
|
|
|
|
=> from "Str" |
30
|
|
|
|
|
|
|
=> via { |
31
|
|
|
|
|
|
|
__PACKAGE__->new(crypted => password($_)); |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
=> from "Crypt::Password" |
34
|
|
|
|
|
|
|
=> via { |
35
|
|
|
|
|
|
|
__PACKAGE__->new(crypted => $_); |
36
|
|
|
|
|
|
|
}; |
37
|
|
|
|
|
|
|
1; |