Sha256: f4c98693c662325be58218c5280d6e362025e500b579095b3ed9812dace884bf
Contents?: true
Size: 477 Bytes
Versions: 34
Compression:
Stored size: 477 Bytes
Contents
module SamlIdp module Algorithmable def algorithm algorithm_check = raw_algorithm || SamlIdp.config.algorithm return algorithm_check if algorithm_check.respond_to?(:digest) begin OpenSSL::Digest.const_get(algorithm_check.to_s.upcase) rescue NameError OpenSSL::Digest::SHA1 end end private :algorithm def algorithm_name algorithm.to_s.split('::').last.downcase end private :algorithm_name end end
Version data entries
34 entries across 34 versions & 2 rubygems