1Net::STOMP::Client::AutUhs(e3r)Contributed Perl DocumentNaetti:o:nSTOMP::Client::Auth(3)
2
3
4

NAME

6       Net::STOMP::Client::Auth - Authentication support for
7       Net::STOMP::Client
8

SYNOPSIS

10         use Net::STOMP::Client;
11         $stomp = Net::STOMP::Client->new(
12             uri  => "stomp://127.0.0.1:61613",
13             auth => "plain name=system pass=manager",
14         );
15

DESCRIPTION

17       This module handles STOMP authentication. It is used internally by
18       Net::STOMP::Client and should not be directly used elsewhere.
19
20       If the optional Authen::Credential module is available, an additional
21       "auth" attribute can be given to Net::STOMP::Client's new() method.  If
22       the module is not available, the "auth" attribute cannot be used.
23
24       This attribute can take either a single authentication credential
25       (either as a string or an Authen::Credential object) or multiple
26       credentials (via an array reference). See Authen::Credential for more
27       information about these credentials.
28
29       If an X.509 credential is given, it will be used at SSL connection
30       time. If a plain credential is given, it will be used in the "CONNECT"
31       frame. If needed, both types of credentials could be used for the same
32       STOMP connection.
33
34       Using generic authentication credentials is very convenient as they
35       could be passed as command line options to a script:
36
37         # default authentication
38         $Option{auth} = "none";
39         # get URI & credential from command line
40         GetOptions(\%Option,
41             "auth=s",
42             "uri=s",
43             ...
44         );
45         $stomp = Net::STOMP::Client->new(uri => $Option{uri}, auth => $Option{auth});
46

SEE ALSO

48       Authen::Credential, Net::STOMP::Client.
49

AUTHOR

51       Lionel Cons <http://cern.ch/lionel.cons>
52
53       Copyright (C) CERN 2010-2021
54
55
56
57perl v5.38.0                      2023-07-21       Net::STOMP::Client::Auth(3)
Impressum