Parent

Methods

Class/Module Index [+]

Quicksearch

ExampleRubyCiphers

Example: Use Ruby Supplied Ciphers

If you use SSLParams, and need the default Ruby ciphers, this is how.

NOTE: JRuby users may find that this is a required action. YMMV.

Public Class Methods

new() click to toggle source

Initialize.

# File examples/ssl_ucx_default_ciphers.rb, line 16
def initialize
end

Public Instance Methods

run() click to toggle source

Run example.

# File examples/ssl_ucx_default_ciphers.rb, line 19
def run
  ssl_opts = Stomp::SSLParams.new(:use_ruby_ciphers => true) # Plus other parameters as needed
  #
  # SSL Use Case: Using default Stomp ciphers
  #
  hash = { :hosts => [
      {:login => 'guest', :passcode => 'guest', :host => 'localhost',
      :port => 61612, :ssl => ssl_opts},
    ]
  }
  #
  puts "Connect starts, SSL , Use Default Ruby Ciphers"
  c = Stomp::Connection.new(hash)
  puts "Connect completed"
  #
  c.disconnect
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.