Sha256: b294bc8127ce65534e705766f2e3c694e96f173e506e2684f2250bb853e064fc
Contents?: true
Size: 433 Bytes
Versions: 20
Compression:
Stored size: 433 Bytes
Contents
module Saml module Kit module Crypto class RsaCipher ALGORITHMS = { 'http://www.w3.org/2001/04/xmlenc#rsa-1_5' => true, } def initialize(algorithm, key) @key = key end def self.matches?(algorithm) ALGORITHMS[algorithm] end def decrypt(cipher_text) @key.private_decrypt(cipher_text) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems