2 * Copyright (c) 2014 <copyright holder> <email>
4 * For license details, see the LICENSE file in the root of this project.
8 #ifndef GSSCREATESECCONTEXTCOMMAND_H
9 #define GSSCREATESECCONTEXTCOMMAND_H
11 #include "GSSCommand.h"
12 #include <datamodel/GSSContext.h>
13 #include <datamodel/GSSName.h>
14 #include <datamodel/GSSOID.h>
17 class GSSCreateSecContextCommand : public GSSCommand
22 OM_uint32 minor_status;
23 gss_ctx_id_t context_handle;
24 gss_name_t target_name;
27 gss_buffer_desc input_token;
28 gss_buffer_desc output_token;
35 GSSCreateSecContextCommand(void *fn = (void *)&gss_init_sec_context);
36 GSSCreateSecContextCommand(JSONObject *params, void *fn = (void *)&gss_init_sec_context);
38 bool loadParameters(JSONObject *params);
39 bool zeroOut(bool initialized = true);
43 OM_uint32 getReqFlags() { return req_flags; }
44 OM_uint32 getTimeReq() { return time_req; }
45 gss_ctx_id_t getContextHandle() { return context_handle; }
46 void *getGSSFunction() { return function; }
47 GSSOID getMechType() { return mechType; };
48 GSSOID getActualMechType() { return actualMechType; };
51 const char * getTargetDisplayName();
57 GSSOID actualMechType;
59 std::string contextKey;
62 #endif // GSSCREATESECCONTEXTCOMMAND_H