Module: Saml::Kit::Crypto
- Defined in:
- lib/saml/kit/crypto.rb,
lib/saml/kit/crypto/rsa_cipher.rb,
lib/saml/kit/crypto/oaep_cipher.rb,
lib/saml/kit/crypto/simple_cipher.rb,
lib/saml/kit/crypto/unknown_cipher.rb
Defined Under Namespace
Classes: OaepCipher, RsaCipher, SimpleCipher, UnknownCipher
Constant Summary collapse
- DECRYPTORS =
[ SimpleCipher, RsaCipher, OaepCipher, UnknownCipher ]
Class Method Summary collapse
Class Method Details
.decryptor_for(algorithm, key) ⇒ Object
11 12 13 |
# File 'lib/saml/kit/crypto.rb', line 11 def self.decryptor_for(algorithm, key) DECRYPTORS.find { |x| x.matches?(algorithm) }.new(algorithm, key) end |