Module: Java2ruby::Xmldsig

Extended by:
Xmldsig
Included in:
Xmldsig
Defined in:
lib/java2ruby-xmldsig.rb,
lib/java2ruby-xmldsig/version.rb

Constant Summary collapse

Helper =
Rjb::import('ru.atconsulting.xmldsig.Xmldsig')
VERSION =
"0.2"

Instance Method Summary collapse

Instance Method Details

#sign(xml, reference) ⇒ Object



14
15
16
# File 'lib/java2ruby-xmldsig.rb', line 14

def sign(xml, reference)
  Helper.sign xml, reference
end

#signature(xml, reference) ⇒ Object



18
19
20
# File 'lib/java2ruby-xmldsig.rb', line 18

def signature(xml, reference)
  Helper.signature xml, reference
end

#verify(xml) ⇒ Object



22
23
24
25
26
# File 'lib/java2ruby-xmldsig.rb', line 22

def verify(xml)
  silence_stream(STDERR) do
    Helper.verify xml
  end
end