digidentity/libsaml

View on GitHub
lib/saml/elements/signature/signature_method.rb

Summary

Maintainability
A
15 mins
Test Coverage
module Saml
  module Elements
    class Signature
      class SignatureMethod
        include Saml::Base

        tag "SignatureMethod"
        namespace 'ds'

        attribute :algorithm, String, tag: "Algorithm"

        def initialize(*args)
          @algorithm = Saml::Config.signature_algorithm
          super(*args)
        end
      end
    end
  end
end