Net::Jabber::Key(3pm)

Net::Jabber::Key3pm

Jabber key library

Usage

  Net::Jabber::Key is a module that provides a developer easy access
  to generating, caching, and comparing keys.

Overview

  Key.pm is a helper module for the Net::Jabber::Transport.  When the
  Transport talks to a Client it sends a key and expects to get that
  key back from the Client.  This module provides an API to generate,
  cache, and then compare the key send from the Client.

Basic Functions

    $Key = new Net::Jabber::Key();
    $key = $Key->Generate();
    $key = $Key->Create("bob\@jabber.org");
    $test = $Key->Compare("bob\@jabber.org","some key");

Methods

Basic Functions

    new(debug=>string,       - creates the Key object.  debug should
        debugfh=>FileHandle,   be set to the path for the debug
        debuglevel=>integer)   log to be written.  If set to "stdout" 
                               then the debug will go there.  Also, you
                               can specify a filehandle that already
                               exists and use that.  debuglevel controls
                               the amount of debug.  0 is none, 1 is
                               normal, 2 is all.
    Generate() - returns a key in Digest SHA1 form based on the current
                 time and the PID.
    Create(cacheString) - generates a key and caches it with the key 
                          of cacheString.  Create returns the key.
    Compare(cacheString, - compares the key stored in the cache under
            keyString)     cacheString with the keyString.  Returns 1
                           if they match, and 0 otherwise.

Releases

13 releases since Debian 3.0 (Woody); the text changed 8 times.

  1. 3.0
  2. 3.1
  3. 4.0–6.0
  4. 7
  5. 8
  6. 9
  7. 10–11
  8. 12–13
  9. Arch

Author

By Ryan Eatmon in May of 2000 for http://jabber.org.

From perl-net-jabber 2.0-18 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.