GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::STOMP::Client::Auth(3) User Contributed Perl Documentation Net::STOMP::Client::Auth(3)

Net::STOMP::Client::Auth - Authentication support for Net::STOMP::Client

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

This module handles STOMP authentication. It is used internally by Net::STOMP::Client and should not be directly used elsewhere.

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.

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.

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});

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

Lionel Cons <http://cern.ch/lionel.cons>

Copyright (C) CERN 2010-2017

2017-01-31 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.