Sha256: b94a918bfddc00021f65869cf143d03e4515d51756e08ba642b325b09a9a1cf6

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

module Saml
  module Kit
    module Cli
      module Commands
        class XmlDigitalSignature < Thor
          desc(
            'verify file',
            'Verify if the contents of a file has a valid signature.'
          )
          method_option(
            :format,
            default: 'short',
            required: false,
            enum: %w[short full]
          )
          def verify(file)
            report = SignatureReport.new(file, format: options[:format])
            report.print(self)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saml-kit-cli-0.3.8 lib/saml/kit/cli/commands/xml_digital_signature.rb
saml-kit-cli-0.3.7 lib/saml/kit/cli/commands/xml_digital_signature.rb