checkin for GSS import name
[gssweb.git] / json_gssapi / src / GSSImportName.cpp
1 /*
2  * Copyright (c) 2014 <copyright holder> <email>
3  * 
4  * For license details, see the LICENSE file in the root of this project.
5  * 
6  */
7
8 #include "GSSImportName.h"
9
10 void GSSImportName::execute()
11 {
12
13 }
14
15 JSONObject *GSSImportName::toJSON()
16 {
17   return new JSONObject();
18 }
19
20 GSSImportName::GSSImportName(JSONObject *params, gss_imp_name_type fn) : GSSCommand(params)
21 {
22   /* Variables */
23   /* Error checking */
24   /* Setup */
25   /* Main */
26   loadParameters(params);
27   function = fn;
28   /* Cleanup */
29   /* Return */
30   
31 }
32
33 bool GSSImportName::loadParameters(JSONObject *params)
34 {
35   /* Variables */
36   /* Error checking */
37   /* Setup */
38   // Should I zeroOut?
39   
40   /* Main processing */
41   // Easy stuff(*params)
42   std::string input_name = (*params)["arguments"]["input_name"].string();
43   std::string input_name_type = (*params)["arguments"]["input_name_type"].string();
44   
45   this->inputName.setValue( (*params)["arguments"]["input_name"].string() );
46   this->inputNameType.setValue( (*params)["arguments"]["input_name_type"].string() );
47   
48   /* Cleanup */
49   /* Return */
50   return true;
51 }
52
53
54 /* Variables */
55 /* Error checking */
56 /* Setup */
57 /* Main */
58 /* Cleanup */
59 /* Return */