def validate_registration(validationBlock, *args)
			options = ((args.last.is_a?(Hash)) ? args.pop : {})

			require "open-uri"
			require "net/http"
			require "openssl"

			jive_signature_url = validationBlock[:jiveSignatureURL]
			jive_signature = validationBlock[:jiveSignature]

			validationBlock.delete(:jiveSignature)

			if !validationBlock[:clientSecret].nil?
				validationBlock[:clientSecret] = Digest::SHA256.hexdigest(validationBlock[:clientSecret])
			end

			uri = URI.parse(jive_signature_url)
			http = Net::HTTP.new(uri.host, uri.port)
			http.use_ssl = true
			http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? && !options[:verify_ssl]

			buffer = ''
			validationBlock = validationBlock.sort

			(validationBlock.respond_to?(:to_h) ? validationBlock.to_h : Hash[validationBlock] ).each_pair { |k,v|
				buffer = "#{buffer}#{k}:#{v}\n"
			}

			request = Net::HTTP::Post.new(uri.request_uri)
			request.body = buffer

			request["X-Jive-MAC"] = jive_signature
			request["Content-Type"] = "application/json"

			response = http.request(request)

			(response.code.to_i === 204)
		end
def validate_registration(validationBlock, *args)
			options = ((args.last.is_a?(Hash)) ? args.pop : {})

			require "open-uri"
			require "net/http"
			require "openssl"

			jive_signature_url = validationBlock[:jiveSignatureURL]
			jive_signature = validationBlock[:jiveSignature]

			validationBlock.delete(:jiveSignature)

			if !validationBlock[:clientSecret].nil?
				validationBlock[:clientSecret] = Digest::SHA256.hexdigest(validationBlock[:clientSecret])
			end

			uri = URI.parse(jive_signature_url)
			http = Net::HTTP.new(uri.host, uri.port)
			http.use_ssl = true
			http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? && !options[:verify_ssl]

			buffer = ''
			validationBlock = validationBlock.sort

			(validationBlock.respond_to?(:to_h) ? validationBlock.to_h : Hash[validationBlock] ).each_pair { |k,v|
				buffer = "#{buffer}#{k}:#{v}\n"
			}

			request = Net::HTTP::Post.new(uri.request_uri)
			request.body = buffer

			request["X-Jive-MAC"] = jive_signature
			request["Content-Type"] = "application/json"

			response = http.request(request)

			(response.code.to_i === 204)
		end
Validates an app registration

 Validates an app registration came from where it claims via jiveSignatureURL

 * *Args*    :
   - +validationBlock+ -> the request body of the registration
   - +args+ -> additional arguments
 * *Returns* :
   - boolean