Module: Xmldsign::Algorithms

Defined in:
lib/xmldsign/algorithms.rb

Defined Under Namespace

Classes: C14NExc, Canonicalization, Enveloped, Gostr3411, XSLT

Constant Summary collapse

ALGORITHMS =
{
    # Digests

    "http://www.w3.org/2001/04/xmldsig-more#gostr3411"      => Gostr3411,

    # Transforms and Canonicalize

    "http://www.w3.org/2000/09/xmldsig#enveloped-signature" => Enveloped,
    "http://www.w3.org/TR/1999/REC-xslt-19991116"           => XSLT,
    "http://www.w3.org/2001/10/xml-exc-c14n#"               => C14NExc,
}

Class Method Summary collapse

Class Method Details

.factory(uri, node) ⇒ Object



3
4
5
# File 'lib/xmldsign/algorithms.rb', line 3

def factory(uri, node)
  ALGORITHMS[uri].new(node)
end