Class: SAML::Metadata::KeyDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/saml/metadata/key_descriptor.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#key_infoObject

Returns the value of attribute key_info.



6
7
8
# File 'lib/saml/metadata/key_descriptor.rb', line 6

def key_info
  @key_info
end

#useObject

Returns the value of attribute use.



5
6
7
# File 'lib/saml/metadata/key_descriptor.rb', line 5

def use
  @use
end

#x509_certificateObject

Returns the value of attribute x509_certificate.



7
8
9
# File 'lib/saml/metadata/key_descriptor.rb', line 7

def x509_certificate
  @x509_certificate
end

Class Method Details

.from_xml(xml) ⇒ Object



9
# File 'lib/saml/metadata/key_descriptor.rb', line 9

def self.from_xml(xml); new.from_xml(xml); end

Instance Method Details

#from_xml(xml) ⇒ Object



11
12
13
14
15
16
# File 'lib/saml/metadata/key_descriptor.rb', line 11

def from_xml(xml)
  @use = xml.attributes['use']
  @x509_certificate = REXML::XPath.first(xml, '//ds:X509Certificate').text
  
  self
end