Sha256: 5abd4e6deb424eb2c1bb2d0104bde8d0116088ac117854534bc26beac8b9d999
Contents?: true
Size: 987 Bytes
Versions: 16
Compression:
Stored size: 987 Bytes
Contents
module Xmlenc module Builder module ComplexTypes module EncryptedType extend ActiveSupport::Concern include Xmlenc::Builder::Base included do register_namespace "xenc", Xmlenc::NAMESPACES[:xenc] has_one :encryption_method, Xmlenc::Builder::EncryptionMethod, :xpath => "./" has_one :key_info, Xmlenc::Builder::KeyInfo, :xpath => "./" has_one :cipher_data, Xmlenc::Builder::CipherData, :xpath => "./" validates :cipher_data, :presence => true end def initialize(attributes = {}) super self.cipher_data = CipherData.new end def set_encryption_method(attributes = {}) self.encryption_method = EncryptionMethod.new(attributes) end def set_key_name(key_name) if key_name self.key_info ||= KeyInfo.new self.key_info.key_name = key_name end end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems