Sha256: 1d1e462790e09073ee4843c46fe860843ab9ffde1c86183024a445c7d8799cab

Contents?: true

Size: 451 Bytes

Versions: 5

Compression:

Stored size: 451 Bytes

Contents

require 'saml/kit/crypto/oaep_cipher'
require 'saml/kit/crypto/rsa_cipher'
require 'saml/kit/crypto/simple_cipher'
require 'saml/kit/crypto/unknown_cipher'

module Saml
  module Kit
    module Crypto
      DECRYPTORS = [ SimpleCipher, RsaCipher, OaepCipher, UnknownCipher ]

      # @!visibility private
      def self.decryptor_for(algorithm, key)
        DECRYPTORS.find { |x| x.matches?(algorithm) }.new(algorithm, key)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
saml-kit-0.3.0 lib/saml/kit/crypto.rb
saml-kit-0.2.18 lib/saml/kit/crypto.rb
saml-kit-0.2.17 lib/saml/kit/crypto.rb
saml-kit-0.2.16 lib/saml/kit/crypto.rb
saml-kit-0.2.15 lib/saml/kit/crypto.rb