Sha256: 3cbdf799463ba00f801a055f8541418e9212775f68732a0bd6be0fff7ac43921
Contents?: true
Size: 664 Bytes
Versions: 14
Compression:
Stored size: 664 Bytes
Contents
require 'saml/elements/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
14 entries across 14 versions & 1 rubygems