Module: Xmlenc::Builder::ComplexTypes::EncryptedType
- Extended by:
- ActiveSupport::Concern
- Includes:
- Base
- Included in:
- EncryptedData, EncryptedKey
- Defined in:
- lib/xmlenc/builder/complex_types/encrypted_type.rb
Instance Method Summary collapse
- #initialize(attributes = {}) ⇒ Object
- #set_encryption_method(attributes = {}) ⇒ Object
- #set_key_name(key_name) ⇒ Object
Instance Method Details
#initialize(attributes = {}) ⇒ Object
18 19 20 21 |
# File 'lib/xmlenc/builder/complex_types/encrypted_type.rb', line 18 def initialize(attributes = {}) super self.cipher_data = CipherData.new end |
#set_encryption_method(attributes = {}) ⇒ Object
23 24 25 |
# 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) ⇒ Object
27 28 29 30 31 32 |
# 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 |