DJabberd/SASL/Connection.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
set_authenticated_jid
2.0
authenticated_jid
2.0
CRAP 2.0
1 package DJabberd::SASL::Connection;
2 use strict;
3 use warnings;
4  
5 sub new {
6 my $class = shift;
7 return bless { }, $class;
8 }
9  
10 sub set_authenticated_jid {
11 my $conn = shift;
12 return $conn->{__authenticated_jid} = shift;
13 }
14  
15 sub authenticated_jid {
16 my $conn = shift;
17 return $conn->{__authenticated_jid};
18 }
19  
20 1;
21  
22 =pod
23  
24 =head1 NAME
25  
26 DJabberd::SASL::Connection - abstract base class for SASL connections
27  
28 =head1 DESCRIPTION
29  
30 An instance of this object is created by one SASL manager and attached to the
31 connection (L<DJabberd::Connection>) object when a SASL is being or has been
32 negotiated. Instances of that class (or subclasses) have the same interface
33 than L<Authen::SASL>'s connection object (server_start, server_step,
34 need_step, is_success, error...).
35  
36 =head1 ADDITIONAL METHODS
37  
38 =head2 authenticated_jid
39  
40 A string representing the jid that is authenticated at the outcome of the
41 negotiation.
42  
43 =head2 set_authenticated_jid($jid_string)
44  
45 Sets the authenticated_jid
46  
47 =head1 COPYRIGHT
48  
49 (c) 2009 Yann Kerherve
50  
51 This module is part of the DJabberd distribution and is covered by the
52 distribution's overall licence.
53  
54 =cut
55  
56 # Local Variables:
57 # mode: perl
58 # c-basic-indent: 4
59 # indent-tabs-mode: nil
60 # End: