DJabberd::SASL::Connection - abstract base class for SASL connections


DJabberd documentation Contained in the DJabberd distribution.

Index


Code Index:

NAME

Top

DJabberd::SASL::Connection - abstract base class for SASL connections

DESCRIPTION

Top

An instance of this object is created by one SASL manager and attached to the connection (DJabberd::Connection) object when a SASL is being or has been negotiated. Instances of that class (or subclasses) have the same interface than Authen::SASL's connection object (server_start, server_step, need_step, is_success, error...).

ADDITIONAL METHODS

Top

authenticated_jid

A string representing the jid that is authenticated at the outcome of the negotiation.

set_authenticated_jid($jid_string)

Sets the authenticated_jid

COPYRIGHT

Top


DJabberd documentation Contained in the DJabberd distribution.

package DJabberd::SASL::Connection;
use strict;
use warnings;

sub new {
    my $class = shift;
    return bless { }, $class;
}

sub set_authenticated_jid {
    my $conn = shift;
    return $conn->{__authenticated_jid} = shift;
}

sub authenticated_jid {
    my $conn   = shift;
    return $conn->{__authenticated_jid};
}

1;

# Local Variables:
# mode: perl
# c-basic-indent: 4
# indent-tabs-mode: nil
# End: