line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
require 5.006_001; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
13737
|
use strict; |
|
6
|
|
|
|
|
7
|
|
|
6
|
|
|
|
|
126
|
|
4
|
6
|
|
|
6
|
|
21
|
use warnings; |
|
6
|
|
|
|
|
4
|
|
|
6
|
|
|
|
|
1309
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
#====================================================================== |
7
|
|
|
|
|
|
|
# Authen::CAS::Client::Response |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
package Authen::CAS::Client::Response; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
12
|
|
|
|
|
|
|
|
13
|
16
|
|
|
16
|
|
46
|
sub _ATTRIBUTES () { _ok => undef, doc => undef } |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
16
|
16
|
|
|
16
|
1
|
77
|
my ( $class, %args ) = @_; |
17
|
|
|
|
|
|
|
|
18
|
16
|
|
|
|
|
35
|
my %self = $class->_ATTRIBUTES; |
19
|
16
|
|
|
|
|
39
|
for my $attribute ( keys %self ) { |
20
|
|
|
|
|
|
|
$self{$attribute} = $args{$attribute} |
21
|
57
|
100
|
|
|
|
100
|
if exists $args{$attribute}; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
16
|
|
|
|
|
45
|
bless \%self, $class |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
8
|
|
|
8
|
1
|
4107
|
sub is_error { my ( $self ) = @_; ! defined $self->{_ok} } |
|
8
|
|
|
|
|
33
|
|
28
|
8
|
100
|
|
8
|
1
|
1546
|
sub is_failure { my ( $self ) = @_; defined $self->{_ok} && ! $self->{_ok} } |
|
8
|
|
|
|
|
39
|
|
29
|
8
|
100
|
|
8
|
1
|
1491
|
sub is_success { my ( $self ) = @_; defined $self->{_ok} && $self->{_ok} } |
|
8
|
|
|
|
|
29
|
|
30
|
|
|
|
|
|
|
|
31
|
8
|
|
|
8
|
1
|
9
|
sub doc { my ( $self ) = @_; $self->{doc} } |
|
8
|
|
|
|
|
29
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
#====================================================================== |
35
|
|
|
|
|
|
|
# Authen::CAS::Client::Response::Error |
36
|
|
|
|
|
|
|
# |
37
|
|
|
|
|
|
|
package Authen::CAS::Client::Response::Error; |
38
|
|
|
|
|
|
|
|
39
|
6
|
|
|
6
|
|
21
|
use base qw/ Authen::CAS::Client::Response /; |
|
6
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
829
|
|
40
|
|
|
|
|
|
|
|
41
|
3
|
|
|
3
|
|
8
|
sub _ATTRIBUTES () { error => 'An internal error occurred', $_[0]->SUPER::_ATTRIBUTES } |
42
|
|
|
|
|
|
|
|
43
|
3
|
|
|
3
|
|
562
|
sub new { my $class = shift; $class->SUPER::new( @_, _ok => undef ) } |
|
3
|
|
|
|
|
10
|
|
44
|
|
|
|
|
|
|
|
45
|
2
|
|
|
2
|
|
6
|
sub error { my ( $self ) = @_; $self->{error} } |
|
2
|
|
|
|
|
13
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
#====================================================================== |
49
|
|
|
|
|
|
|
# Authen::CAS::Client::Response::Failure |
50
|
|
|
|
|
|
|
# |
51
|
|
|
|
|
|
|
package Authen::CAS::Client::Response::Failure; |
52
|
|
|
|
|
|
|
|
53
|
6
|
|
|
6
|
|
23
|
use base qw/ Authen::CAS::Client::Response /; |
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
883
|
|
54
|
|
|
|
|
|
|
|
55
|
5
|
|
|
5
|
|
11
|
sub _ATTRIBUTES () { code => undef, message => '', $_[0]->SUPER::_ATTRIBUTES } |
56
|
|
|
|
|
|
|
|
57
|
5
|
|
|
5
|
|
1008
|
sub new { my $class = shift; $class->SUPER::new( @_, _ok => 0 ) } |
|
5
|
|
|
|
|
13
|
|
58
|
|
|
|
|
|
|
|
59
|
2
|
|
|
2
|
|
18
|
sub code { my ( $self ) = @_; $self->{code} } |
|
2
|
|
|
|
|
7
|
|
60
|
2
|
|
|
2
|
|
3
|
sub message { my ( $self ) = @_; $self->{message} } |
|
2
|
|
|
|
|
6
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
#====================================================================== |
64
|
|
|
|
|
|
|
# Authen::CAS::Client::Response::AuthFailure |
65
|
|
|
|
|
|
|
# |
66
|
|
|
|
|
|
|
package Authen::CAS::Client::Response::AuthFailure; |
67
|
|
|
|
|
|
|
|
68
|
6
|
|
|
6
|
|
24
|
use base qw/ Authen::CAS::Client::Response::Failure /; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
1564
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
#====================================================================== |
72
|
|
|
|
|
|
|
# Authen::CAS::Client::Response::ProxyFailure |
73
|
|
|
|
|
|
|
# |
74
|
|
|
|
|
|
|
package Authen::CAS::Client::Response::ProxyFailure; |
75
|
|
|
|
|
|
|
|
76
|
6
|
|
|
6
|
|
27
|
use base qw/ Authen::CAS::Client::Response::Failure /; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
1143
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
#====================================================================== |
80
|
|
|
|
|
|
|
# Authen::CAS::Client::Response::Success |
81
|
|
|
|
|
|
|
# |
82
|
|
|
|
|
|
|
package Authen::CAS::Client::Response::Success; |
83
|
|
|
|
|
|
|
|
84
|
6
|
|
|
6
|
|
22
|
use base qw/ Authen::CAS::Client::Response /; |
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
519
|
|
85
|
|
|
|
|
|
|
|
86
|
7
|
|
|
7
|
|
1440
|
sub new { my $class = shift; $class->SUPER::new( @_, _ok => 1 ) } |
|
7
|
|
|
|
|
20
|
|
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
#====================================================================== |
90
|
|
|
|
|
|
|
# Authen::CAS::Client::Response::AuthSuccess |
91
|
|
|
|
|
|
|
# |
92
|
|
|
|
|
|
|
package Authen::CAS::Client::Response::AuthSuccess; |
93
|
|
|
|
|
|
|
|
94
|
6
|
|
|
6
|
|
25
|
use base qw/ Authen::CAS::Client::Response::Success /; |
|
6
|
|
|
|
|
4
|
|
|
6
|
|
|
|
|
1891
|
|
95
|
|
|
|
|
|
|
|
96
|
3
|
|
|
3
|
|
9
|
sub _ATTRIBUTES () { user => undef, iou => undef, proxies => [ ], $_[0]->SUPER::_ATTRIBUTES } |
97
|
|
|
|
|
|
|
|
98
|
2
|
|
|
2
|
|
6
|
sub user { my ( $self ) = @_; $self->{user} } |
|
2
|
|
|
|
|
6
|
|
99
|
2
|
|
|
2
|
|
5
|
sub iou { my ( $self ) = @_; $self->{iou} } |
|
2
|
|
|
|
|
8
|
|
100
|
2
|
50
|
|
2
|
|
2
|
sub proxies { my ( $self ) = @_; wantarray ? @{ $self->{proxies} } : [ @{ $self->{proxies} } ] } |
|
2
|
|
|
|
|
4
|
|
|
0
|
|
|
|
|
0
|
|
|
2
|
|
|
|
|
10
|
|
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
#====================================================================== |
104
|
|
|
|
|
|
|
# Authen::CAS::Client::Response::ProxySuccess |
105
|
|
|
|
|
|
|
# |
106
|
|
|
|
|
|
|
package Authen::CAS::Client::Response::ProxySuccess; |
107
|
|
|
|
|
|
|
|
108
|
6
|
|
|
6
|
|
26
|
use base qw/ Authen::CAS::Client::Response::Success /; |
|
6
|
|
|
|
|
5
|
|
|
6
|
|
|
|
|
1353
|
|
109
|
|
|
|
|
|
|
|
110
|
3
|
|
|
3
|
|
9
|
sub _ATTRIBUTES () { proxy_ticket => undef, $_[0]->SUPER::_ATTRIBUTES } |
111
|
|
|
|
|
|
|
|
112
|
2
|
|
|
2
|
|
5
|
sub proxy_ticket { my ( $self ) = @_; $self->{proxy_ticket} } |
|
2
|
|
|
|
|
7
|
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
1 |
116
|
|
|
|
|
|
|
__END__ |