Sha256: 078045abd3e6bb59db23d17c72ab7edb1e7bdd7ed82bd7bedcd378561d1c074b

Contents?: true

Size: 359 Bytes

Versions: 2

Compression:

Stored size: 359 Bytes

Contents

require 'oauth/signature/base'

module OAuth::Signature
  class PLAINTEXT < Base
    implements 'plaintext'

    def signature
      signature_base_string
    end

    def ==(cmp_signature)
      secure_equals(signature , escape(cmp_signature))
    end

    def signature_base_string
      secret
    end

    def secret
      escape(super)
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
jwhitmire-oauth-0.3.6.1 lib/oauth/signature/plaintext.rb
pelle-oauth-0.3.6 lib/oauth/signature/plaintext.rb