Sha256: 9c758cbb406ec6b72571d18ebd33695119c40ab6eb9e1304ffe131fc6a0b3da1
Contents?: true
Size: 688 Bytes
Versions: 7
Compression:
Stored size: 688 Bytes
Contents
require 'saml/elements/key_descriptor/key_info' module Saml module Elements class KeyDescriptor include Saml::Base module UseTypes SIGNING = "signing" ENCRYPTION = "encryption" ALL = [SIGNING, ENCRYPTION, nil] end tag 'KeyDescriptor' namespace 'md' attribute :use, String, :tag => "use" has_one :key_info, KeyInfo validates :use, :inclusion => UseTypes::ALL validates :certificate, :presence => true def certificate key_info.try(:x509Data).try(:x509certificate) end def certificate=(cert) self.key_info = KeyInfo.new(cert) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems