You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2013/11/19 23:05:02 UTC
svn commit: r1543595 - in /qpid/proton/trunk/proton-c/bindings/ruby:
ChangeLog lib/qpid_proton/messenger.rb
Author: mcpierce
Date: Tue Nov 19 22:05:02 2013
New Revision: 1543595
URL: http://svn.apache.org/r1543595
Log:
PROTON-456: Added password property to Ruby Messenger class.
Modified:
qpid/proton/trunk/proton-c/bindings/ruby/ChangeLog
qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb
Modified: qpid/proton/trunk/proton-c/bindings/ruby/ChangeLog
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/ruby/ChangeLog?rev=1543595&r1=1543594&r2=1543595&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/ruby/ChangeLog (original)
+++ qpid/proton/trunk/proton-c/bindings/ruby/ChangeLog Tue Nov 19 22:05:02 2013
@@ -2,6 +2,7 @@ Version 0.7:
* PROTON-452: Exposed Messenger interrupt method.
* PROTON-454: Add route method to Messenger.
* PROTON-455: Add rewrite method to Messenger.
+ * PROTON-456: Add password property to Messenger.
Version 0.6:
* PROTON-427: Removed the flag argument from Messenger.settle.
Modified: qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb?rev=1543595&r1=1543594&r2=1543595&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb (original)
+++ qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/messenger.rb Tue Nov 19 22:05:02 2013
@@ -56,6 +56,23 @@ module Qpid
Cproton.pn_messenger_name(@impl)
end
+ # This property contains the password for the Messenger.private_key
+ # file, or +nil+ if the file is not encrypted.
+ #
+ # ==== Arguments
+ #
+ # * password - the password
+ #
+ def password=(password)
+ check_for_error(Cproton.pn_messenger_set_password(@impl, password))
+ end
+
+ # Returns the password property for the Messenger.private_key file.
+ #
+ def password
+ Cproton.pn_messenger_get_password(@impl)
+ end
+
# Sets the timeout period, in milliseconds.
#
# A negative timeout period implies an infinite timeout.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org