Class: SignedXml::SignedInfo
- Inherits:
-
Object
- Object
- SignedXml::SignedInfo
- Includes:
- Transformable
- Defined in:
- lib/signed_xml/signed_info.rb
Instance Attribute Summary collapse
-
#signature_method ⇒ Object
readonly
Returns the value of attribute signature_method.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
Instance Method Summary collapse
-
#initialize(here) ⇒ SignedInfo
constructor
A new instance of SignedInfo.
Methods included from Transformable
#apply_transforms, #transforms
Methods included from Logging
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_method ⇒ Object (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 |
#start ⇒ Object (readonly)
Returns the value of attribute start.
5 6 7 |
# File 'lib/signed_xml/signed_info.rb', line 5 def start @start end |