{
  "synLogic": "int $ret \u003d $api($1, $2, $3, $4);",
  "help": "This function sets the SSL identity of a TIBCO process. The SSL identity file contains the private key and the SSL certificate that the process uses to establish SSL connections with other processes.",
  "notes": "",
  "returns": "int - 0 if successful, -1 if unsuccessful.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e JPID \u003c/td\u003e \u003ctd\u003e The process ID of the TIBCO process. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e File Path \u003c/td\u003e \u003ctd\u003e It is the client identity file. The user can either browse the file path or enter the file path manually. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e SSL Password \u003c/td\u003e \u003ctd\u003e The password of the SSL identity file. \u003c/td\u003e \u003c/tr\u003e  \u003ctr\u003e \u003ctd\u003e Error Message \u003c/td\u003e \u003ctd\u003e The error message returned by the function in case of failure. \u003c/td\u003e \u003c/tr\u003e  \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_tibco_set_ssl_identity",
  "syntax": "int ns_tibco_set_ssl_identity(int jpid, char *identityFilePath, char *ssl_pwd, char *error_msg)",
  "javaSyntax": "int ns_tibco_set_ssl_identity(int jpid, char *identityFilePath, char *ssl_pwd, char *error_msg)",
  "cEx": "flow()\n{\n  int jpid;	//JMS Pool Id\n  int jcid;	//JMS Connection Id\n  char error_msg[1024 + 1];	// Error string. Must be 1024 size\n  int ret;	// Error code\n  char *msg = \"messag will goes here\";	// Message to be produced\n  int msg_len = strlen(msg);	// Message Length\n\n  if((jpid = ns_tibco_init_producer(\"ssl://127.0.0.1\", 7222, 1, \"topic\", \"user_id\", ns_decrypt(\"NlEyRDJeMFI=\"), 1, error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in initializing Tibco producer. Error code = %d, Error Msg = %s\", jpid, error_msg);\n    return;\n  }\n\n  if((jcid = ns_tibco_get_connection(jpid, \"TIBCOProducerSSLConnect\", error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in getting Tibco connention. Error code = %d, Error Msg = %s\", jcid, error_msg);\n    return;\n  }\n\n  if((ns_tibco_set_ssl_identity(jcid, \"/home/cavisson/controller/identity.txt\", ns_decrypt(\"NUMtRy5BI0U3\"), error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in setting tibco ssl identity. Error code = %d, Error Msg = %s\", ret, error_msg);\n    return;\n  }\n}",
  "javaEx": "flow()\n{\n  int jpid;	//JMS Pool Id\n  int jcid;	//JMS Connection Id\n  char error_msg[1024 + 1];	// Error string. Must be 1024 size\n  int ret;	// Error code\n  char *msg = \"messag will goes here\";	// Message to be produced\n  int msg_len = strlen(msg);	// Message Length\n\n  if((jpid = ns_tibco_init_producer(\"ssl://127.0.0.1\", 7222, 1, \"topic\", \"user_id\", ns_decrypt(\"NlEyRDJeMFI=\"), 1, error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in initializing Tibco producer. Error code = %d, Error Msg = %s\", jpid, error_msg);\n    return;\n  }\n\n  if((jcid = ns_tibco_get_connection(jpid, \"TIBCOProducerSSLConnect\", error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in getting Tibco connention. Error code = %d, Error Msg = %s\", jcid, error_msg);\n    return;\n  }\n\n  if((ns_tibco_set_ssl_identity(jcid, \"/home/cavisson/controller/identity.txt\", ns_decrypt(\"NUMtRy5BI0U3\"), error_msg)) < 0)\n  {\n    fprintf(stderr, \"Error in setting tibco ssl identity. Error code = %d, Error Msg = %s\", ret, error_msg);\n    return;\n  }\n}",
  "insertStrC": "ns_tibco_set_ssl_identity(int jpid, char *identityFilePath, char *ssl_pwd, char *error_msg);",
  "insertStrJava": "ns_tibco_set_ssl_identity(int jpid, char *identityFilePath, char *ssl_pwd, char *error_msg);",
  "description": "This function sets the SSL identity of a TIBCO process. The SSL identity file contains the private key and the SSL certificate that the process uses to establish SSL connections with other processes.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "JMS Pool Id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter pool id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
			"max": 2147483647,
            "min": 0
		}
    },
    {
      "id": "$2",
      "type": "FILE_PATH",
      "label": "File Path",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter file path",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$3",
      "type": "TextField",
      "label": "SSL Password",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter SSL Password",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "password",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
    {
      "id": "$4",
      "type": "TEXT_VAR",
      "label": "Error Message",
      "labelVarCheckbox": "If error message is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter error message",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
		}
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore.",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
		"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "method": "isValidVar(arg)"
      }
    }
  ]
}
