def digital_signature_type=(digital_signature_type)
      validator = EnumAttributeValidator.new('String', ["Unknown", "CryptoApi", "XmlDsig"])
      if digital_signature_type.to_i < 0 || digital_signature_type.to_i >= validator.allowable_values.length
        unless validator.valid?(digital_signature_type)
          raise ArgumentError, "invalid value for 'digital_signature_type', must be one of #{validator.allowable_values}."
        end
        @digital_signature_type = digital_signature_type
      else
        @digital_signature_type = validator.allowable_values[digital_signature_type.to_i]
      end
    end
def digital_signature_type=(digital_signature_type)
      validator = EnumAttributeValidator.new('String', ["Unknown", "CryptoApi", "XmlDsig"])
      if digital_signature_type.to_i < 0 || digital_signature_type.to_i >= validator.allowable_values.length
        unless validator.valid?(digital_signature_type)
          raise ArgumentError, "invalid value for 'digital_signature_type', must be one of #{validator.allowable_values}."
        end
        @digital_signature_type = digital_signature_type
      else
        @digital_signature_type = validator.allowable_values[digital_signature_type.to_i]
      end
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] digital_signature_type Object to be assigned