Class: Saml::Elements::Signature

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/saml/elements/signature.rb,
lib/saml/elements/signature/reference.rb,
lib/saml/elements/signature/transform.rb,
lib/saml/elements/signature/transforms.rb,
lib/saml/elements/signature/signed_info.rb,
lib/saml/elements/signature/digest_method.rb,
lib/saml/elements/signature/signature_method.rb,
lib/saml/elements/signature/inclusive_namespaces.rb,
lib/saml/elements/signature/canonicalization_method.rb

Defined Under Namespace

Classes: CanonicalizationMethod, DigestMethod, InclusiveNamespaces, Reference, SignatureMethod, SignedInfo, Transform, Transforms

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Signature

Returns a new instance of Signature.



24
25
26
27
28
29
# File 'lib/saml/elements/signature.rb', line 24

def initialize(*args)
  super(*args)
  options       = args.extract_options!
  @signed_info  ||= SignedInfo.new(:uri => options.delete(:uri), :digest_value => options.delete(:digest_value))
  @key_info     ||= KeyInfo.new
end

Instance Method Details

#key_nameObject



31
32
33
# File 'lib/saml/elements/signature.rb', line 31

def key_name
  @key_info.try(:key_name)
end