main
1# frozen_string_literal: true
2
3module Saml
4 module Kit
5 module Cli
6 module Commands
7 class XmlDigitalSignature < Thor
8 desc(
9 'verify file',
10 'Verify if the contents of a file has a valid signature.'
11 )
12 method_option(
13 :format,
14 default: 'short',
15 required: false,
16 enum: %w[short full]
17 )
18 def verify(file)
19 report = SignatureReport.new(file, format: options[:format])
20 report.print(self)
21 end
22 end
23 end
24 end
25 end
26end