Class: SignedXml::SignedInfo

Inherits:
Object
  • Object
show all
Includes:
Transformable
Defined in:
lib/signed_xml/signed_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Transformable

#apply_transforms, #transforms

Methods included from Logging

included, #logger

Constructor Details

#initialize(here) ⇒ SignedInfo

Returns a new instance of SignedInfo.



7
8
9
10
11
12
13
14
15
# File 'lib/signed_xml/signed_info.rb', line 7

def initialize(here)
  @start = here

  canonicalization_method = here.at_xpath('//ds:CanonicalizationMethod/@Algorithm', ds: XMLDSIG_NS).value.strip

  transforms << C14NTransform.new(canonicalization_method)

  @signature_method = here.at_xpath('//ds:SignatureMethod/@Algorithm', ds: XMLDSIG_NS).value.strip
end

Instance Attribute Details

#signature_methodObject (readonly)

Returns the value of attribute signature_method.



5
6
7
# File 'lib/signed_xml/signed_info.rb', line 5

def signature_method
  @signature_method
end

#startObject (readonly)

Returns the value of attribute start.



5
6
7
# File 'lib/signed_xml/signed_info.rb', line 5

def start
  @start
end