Class: SAML::Metadata::KeyDescriptor
- Inherits:
-
Object
- Object
- SAML::Metadata::KeyDescriptor
- Defined in:
- lib/saml/metadata/key_descriptor.rb
Instance Attribute Summary collapse
-
#key_info ⇒ Object
Returns the value of attribute key_info.
-
#use ⇒ Object
Returns the value of attribute use.
-
#x509_certificate ⇒ Object
Returns the value of attribute x509_certificate.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#key_info ⇒ Object
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 |
#use ⇒ Object
Returns the value of attribute use.
5 6 7 |
# File 'lib/saml/metadata/key_descriptor.rb', line 5 def use @use end |
#x509_certificate ⇒ Object
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 |