module Xmlenc::Builder::ComplexTypes::EncryptedType

Public Class Methods

new(attributes = {}) click to toggle source
Calls superclass method
# File lib/xmlenc/builder/complex_types/encrypted_type.rb, line 18
def initialize(attributes = {})
  super
  self.cipher_data = CipherData.new
end

Public Instance Methods

set_encryption_method(attributes = {}) click to toggle source
# File lib/xmlenc/builder/complex_types/encrypted_type.rb, line 23
def set_encryption_method(attributes = {})
  self.encryption_method = EncryptionMethod.new(attributes)
end
set_key_name(key_name) click to toggle source
# File lib/xmlenc/builder/complex_types/encrypted_type.rb, line 27
def set_key_name(key_name)
  if key_name
    self.key_info ||= KeyInfo.new
    self.key_info.key_name = key_name
  end
end