2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
8 #include "GSSImportName.h"
9 #include "GSSException.h"
11 void GSSImportName::execute()
13 this->outputName = GSSName(inputName, inputNameType, function);
16 JSONObject *GSSImportName::toJSON()
18 return new JSONObject();
21 GSSImportName::GSSImportName(JSONObject *params, gss_imp_name_type fn) : GSSCommand(params)
27 loadParameters(params);
34 bool GSSImportName::loadParameters(JSONObject *params)
42 // Easy stuff(*params)
43 std::string input_name = (*params)["arguments"]["input_name"].string();
44 std::string input_name_type = (*params)["arguments"]["input_name_type"].string();
46 this->inputName.setValue( input_name );
47 this->inputNameType.setValue( input_name_type );