Sha256: ab8c1194479bfb716b6565ee23c9d306755b6414826b341b880db4214b3b03f4

Contents?: true

Size: 894 Bytes

Versions: 19

Compression:

Stored size: 894 Bytes

Contents

module MCollective
  module Signer
    class Base
      # Register plugins that inherits base
      def self.inherited(klass)
        PluginManager << {:type => "choria_signer_plugin", :class => klass.to_s}
        super
      end

      def initialize
        @config = Config.instance
        @log = Log
      end

      # Signs a secure request
      #
      # Generally for local mode this would just use the users own certificate but if you have a
      # remote signer this might use a token to speak to a remote API, by default Choria supports
      # a standard web service for remote signatures
      #
      # @param secure_request [Hash] a choria:secure:request:1 hash
      # @raise [StandardError] when signing fails
      def sign_secure_request!(secure_request)
        raise(NoMethodError, "undefined method `sign_secure_request!' for %s" % inspect)
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
choria-mcorpc-support-2.26.4 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.26.3 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.26.2 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.26.1 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.26.0 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.25.3 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.25.2 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.25.1 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.25.0 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.24.4 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.24.3 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.24.2 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.24.1 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.24.0 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.23.3 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.23.2 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.23.1 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.23.0 lib/mcollective/signer/base.rb
choria-mcorpc-support-2.23.0.pre lib/mcollective/signer/base.rb