Net::ST...t::Auth(3)
π NAME π
Okay so bestie, welcome to Net::ST...t::Auth(3) β yes, the User Contributed Perl Documentation girlie β and the module itself is Net::STOMP::Client::Auth. It's literally authentication support for Net::STOMP::Client. That's the name, that's the vibe. π
πΈ SYNOPSIS πΈ
use Net::STOMP::Client;
$stomp = Net::STOMP::Client->new(
uri => "stomp://127.0.0.1:61613",
auth => "plain name=system pass=manager",
);
π¦ DESCRIPTION π¦
This module handles STOMP authentication. It is used internally by Net::STOMP::Client and should not be directly used elsewhere. Bestie, it's giving internal plumbing β do not poke it directly. π
If the optional Authen::Credential module is available, an additional auth attribute can be given to Net::STOMP::Client's new() method. If the module is not available, the auth attribute cannot be used. No cap. π
This attribute can take either a single authentication credential (either as a string or an Authen::Credential object) or multiple credentials (via an array reference). See Authen::Credential for more information about these credentials. β¨
If an X.509 credential is given, it will be used at SSL connection time. If a plain credential is given, it will be used in the CONNECT frame. If needed, both types of credentials could be used for the same STOMP connection. Both? Yes bestie, both. π
Using generic authentication credentials is very convenient as they could be passed as command line options to a script:
# default authentication
$Option{auth} = "none";
# get URI & credential from command line
GetOptions(\%Option,
"auth=s",
"uri=s",
...
);
$stomp = Net::STOMP::Client->new(uri => $Option{uri}, auth => $Option{auth});
π SEE ALSO π
Authen::Credentialβ the credential bestie πNet::STOMP::Clientβ the main character π
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2010-2017
Written by the icon himself β slay. π
Big kiss, bestie β this is perl v5.32.1, dated 2019-07-26, under Net::ST...t::Auth(3). Mwah πβ¨
π¦ where this page comes from
- epel 9: perl-Net-STOMP-Client 2.3-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms