| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package OAuth::Lite2::Model::ServerState; |
|
2
|
|
|
|
|
|
|
|
|
3
|
17
|
|
|
17
|
|
34675
|
use strict; |
|
|
17
|
|
|
|
|
31
|
|
|
|
17
|
|
|
|
|
491
|
|
|
4
|
17
|
|
|
17
|
|
83
|
use warnings; |
|
|
17
|
|
|
|
|
34
|
|
|
|
17
|
|
|
|
|
455
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
17
|
|
|
17
|
|
94
|
use base 'Class::Accessor::Fast'; |
|
|
17
|
|
|
|
|
36
|
|
|
|
17
|
|
|
|
|
2281
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors(qw( |
|
9
|
|
|
|
|
|
|
client_id |
|
10
|
|
|
|
|
|
|
server_state |
|
11
|
|
|
|
|
|
|
expires_in |
|
12
|
|
|
|
|
|
|
created_on |
|
13
|
|
|
|
|
|
|
)); |
|
14
|
|
|
|
|
|
|
|
|
15
|
17
|
|
|
17
|
|
4961
|
use Params::Validate; |
|
|
17
|
|
|
|
|
11816
|
|
|
|
17
|
|
|
|
|
2787
|
|
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub new { |
|
18
|
2
|
|
|
2
|
1
|
60
|
my $class = shift; |
|
19
|
2
|
100
|
|
|
|
12
|
my @args = @_ == 1 ? %{$_[0]} : @_; |
|
|
1
|
|
|
|
|
5
|
|
|
20
|
2
|
|
|
|
|
113
|
my %params = Params::Validate::validate_with( |
|
21
|
|
|
|
|
|
|
params => \@args, |
|
22
|
|
|
|
|
|
|
spec => { |
|
23
|
|
|
|
|
|
|
client_id => 1, |
|
24
|
|
|
|
|
|
|
server_state => 1, |
|
25
|
|
|
|
|
|
|
expires_in => 1, |
|
26
|
|
|
|
|
|
|
created_on => { optional => 1 }, |
|
27
|
|
|
|
|
|
|
}, |
|
28
|
|
|
|
|
|
|
allow_extra => 1, |
|
29
|
|
|
|
|
|
|
); |
|
30
|
2
|
|
|
|
|
19
|
my $self = bless \%params, $class; |
|
31
|
2
|
|
|
|
|
7
|
return $self; |
|
32
|
|
|
|
|
|
|
} |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
OAuth::Lite2::Model::ServerState - model class that represents Server State |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 ACCESSORS |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head2 client_id |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Client Identifier |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 server_state |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Server State string. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 expires_in |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Seconds to expires from 'created_on' |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 created_on |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
UNIX time when Server State created. |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Ryo Ito, Eritou.06@gmail.comE |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Lyo Kato, Elyo.kato@gmail.comE |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Copyright (C) 2010 by Lyo Kato |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
67
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.8 or, |
|
68
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
1; |