Class: Xmlenc::Builder::EncryptionMethod

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/xmlenc/builder/encryption_method.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ EncryptionMethod

Returns a new instance of EncryptionMethod.


16
17
18
19
20
21
22
# File 'lib/xmlenc/builder/encryption_method.rb', line 16

def initialize(attributes = {})
  digest_method_algorithm = attributes.delete(:digest_method_algorithm)
  if digest_method_algorithm
    attributes[:digest_method] = Xmlenc::Builder::DigestMethod.new(:algorithm => digest_method_algorithm)
  end
  super
end