{"action":"created","comment":{"url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/comments/29891161","id":29891161,"diff_hunk":"@@ -255,9 +273,61 @@ def build_cryptographic_algorithm(logger, object_type):\n         sys.exit()\n \n \n-def build_key_value(logger, object_type):\n-    if (object_type == ObjectType.SYMMETRIC_KEY\n-       or object_type == ObjectType.SECRET_DATA):\n+def build_secret_value(logger, object_type):","path":"kmip/demos/utils.py","position":82,"original_position":82,"commit_id":"d396403536d8de90834fa8624572ed3ced747ce3","original_commit_id":"d396403536d8de90834fa8624572ed3ced747ce3","user":{"login":"PeterHamilton","id":8269688,"avatar_url":"https://avatars.githubusercontent.com/u/8269688?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterHamilton","html_url":"https://github.com/PeterHamilton","followers_url":"https://api.github.com/users/PeterHamilton/followers","following_url":"https://api.github.com/users/PeterHamilton/following{/other_user}","gists_url":"https://api.github.com/users/PeterHamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterHamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterHamilton/subscriptions","organizations_url":"https://api.github.com/users/PeterHamilton/orgs","repos_url":"https://api.github.com/users/PeterHamilton/repos","events_url":"https://api.github.com/users/PeterHamilton/events{/privacy}","received_events_url":"https://api.github.com/users/PeterHamilton/received_events","type":"User","site_admin":false},"body":"Yep, should've done that earlier.","created_at":"2015-05-07T20:13:51Z","updated_at":"2015-05-07T20:13:51Z","html_url":"https://github.com/OpenKMIP/PyKMIP/pull/12#discussion_r29891161","pull_request_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/comments/29891161"},"html":{"href":"https://github.com/OpenKMIP/PyKMIP/pull/12#discussion_r29891161"},"pull_request":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12","id":34935931,"html_url":"https://github.com/OpenKMIP/PyKMIP/pull/12","diff_url":"https://github.com/OpenKMIP/PyKMIP/pull/12.diff","patch_url":"https://github.com/OpenKMIP/PyKMIP/pull/12.patch","issue_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/12","number":12,"state":"open","locked":false,"title":"Updating demo utilities to support creating Certificates","user":{"login":"PeterHamilton","id":8269688,"avatar_url":"https://avatars.githubusercontent.com/u/8269688?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterHamilton","html_url":"https://github.com/PeterHamilton","followers_url":"https://api.github.com/users/PeterHamilton/followers","following_url":"https://api.github.com/users/PeterHamilton/following{/other_user}","gists_url":"https://api.github.com/users/PeterHamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterHamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterHamilton/subscriptions","organizations_url":"https://api.github.com/users/PeterHamilton/orgs","repos_url":"https://api.github.com/users/PeterHamilton/repos","events_url":"https://api.github.com/users/PeterHamilton/events{/privacy}","received_events_url":"https://api.github.com/users/PeterHamilton/received_events","type":"User","site_admin":false},"body":"This change updates the unit demo utilities, adding in support for the creation, registration, and retrieval of X.509 Certificate objects. Support includes an example encoding of a Certificate as well as updated logging routines to display retrieved Certificate data.","created_at":"2015-05-07T16:55:50Z","updated_at":"2015-05-07T20:13:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa0fa3302d16a303fc663a597f5b58b76d9b3370","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12/commits","review_comments_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12/comments","review_comment_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/12/comments","statuses_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/statuses/d396403536d8de90834fa8624572ed3ced747ce3","head":{"label":"OpenKMIP:feat/update-register-demo-for-certificate","ref":"feat/update-register-demo-for-certificate","sha":"d396403536d8de90834fa8624572ed3ced747ce3","user":{"login":"OpenKMIP","id":8350747,"avatar_url":"https://avatars.githubusercontent.com/u/8350747?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenKMIP","html_url":"https://github.com/OpenKMIP","followers_url":"https://api.github.com/users/OpenKMIP/followers","following_url":"https://api.github.com/users/OpenKMIP/following{/other_user}","gists_url":"https://api.github.com/users/OpenKMIP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenKMIP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenKMIP/subscriptions","organizations_url":"https://api.github.com/users/OpenKMIP/orgs","repos_url":"https://api.github.com/users/OpenKMIP/repos","events_url":"https://api.github.com/users/OpenKMIP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenKMIP/received_events","type":"Organization","site_admin":false},"repo":{"id":22601443,"name":"PyKMIP","full_name":"OpenKMIP/PyKMIP","owner":{"login":"OpenKMIP","id":8350747,"avatar_url":"https://avatars.githubusercontent.com/u/8350747?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenKMIP","html_url":"https://github.com/OpenKMIP","followers_url":"https://api.github.com/users/OpenKMIP/followers","following_url":"https://api.github.com/users/OpenKMIP/following{/other_user}","gists_url":"https://api.github.com/users/OpenKMIP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenKMIP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenKMIP/subscriptions","organizations_url":"https://api.github.com/users/OpenKMIP/orgs","repos_url":"https://api.github.com/users/OpenKMIP/repos","events_url":"https://api.github.com/users/OpenKMIP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenKMIP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenKMIP/PyKMIP","description":"Open source Python implementation of the KMIP 1.1 specification.","fork":false,"url":"https://api.github.com/repos/OpenKMIP/PyKMIP","forks_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/forks","keys_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/teams","hooks_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/hooks","issue_events_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/events{/number}","events_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/events","assignees_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/assignees{/user}","branches_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/branches{/branch}","tags_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/tags","blobs_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/languages","stargazers_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/stargazers","contributors_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/contributors","subscribers_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/subscribers","subscription_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/subscription","commits_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/contents/{+path}","compare_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/merges","archive_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/downloads","issues_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues{/number}","pulls_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/labels{/name}","releases_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/releases{/id}","created_at":"2014-08-04T11:14:51Z","updated_at":"2015-05-07T13:57:26Z","pushed_at":"2015-05-07T16:55:50Z","git_url":"git://github.com/OpenKMIP/PyKMIP.git","ssh_url":"git@github.com:OpenKMIP/PyKMIP.git","clone_url":"https://github.com/OpenKMIP/PyKMIP.git","svn_url":"https://github.com/OpenKMIP/PyKMIP","homepage":null,"size":1203,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"OpenKMIP:master","ref":"master","sha":"55e2996b91f6b78ff056decb37206a90a5c6314f","user":{"login":"OpenKMIP","id":8350747,"avatar_url":"https://avatars.githubusercontent.com/u/8350747?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenKMIP","html_url":"https://github.com/OpenKMIP","followers_url":"https://api.github.com/users/OpenKMIP/followers","following_url":"https://api.github.com/users/OpenKMIP/following{/other_user}","gists_url":"https://api.github.com/users/OpenKMIP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenKMIP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenKMIP/subscriptions","organizations_url":"https://api.github.com/users/OpenKMIP/orgs","repos_url":"https://api.github.com/users/OpenKMIP/repos","events_url":"https://api.github.com/users/OpenKMIP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenKMIP/received_events","type":"Organization","site_admin":false},"repo":{"id":22601443,"name":"PyKMIP","full_name":"OpenKMIP/PyKMIP","owner":{"login":"OpenKMIP","id":8350747,"avatar_url":"https://avatars.githubusercontent.com/u/8350747?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenKMIP","html_url":"https://github.com/OpenKMIP","followers_url":"https://api.github.com/users/OpenKMIP/followers","following_url":"https://api.github.com/users/OpenKMIP/following{/other_user}","gists_url":"https://api.github.com/users/OpenKMIP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenKMIP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenKMIP/subscriptions","organizations_url":"https://api.github.com/users/OpenKMIP/orgs","repos_url":"https://api.github.com/users/OpenKMIP/repos","events_url":"https://api.github.com/users/OpenKMIP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenKMIP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenKMIP/PyKMIP","description":"Open source Python implementation of the KMIP 1.1 specification.","fork":false,"url":"https://api.github.com/repos/OpenKMIP/PyKMIP","forks_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/forks","keys_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/teams","hooks_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/hooks","issue_events_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/events{/number}","events_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/events","assignees_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/assignees{/user}","branches_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/branches{/branch}","tags_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/tags","blobs_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/languages","stargazers_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/stargazers","contributors_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/contributors","subscribers_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/subscribers","subscription_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/subscription","commits_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/contents/{+path}","compare_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/merges","archive_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/downloads","issues_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues{/number}","pulls_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/labels{/name}","releases_url":"https://api.github.com/repos/OpenKMIP/PyKMIP/releases{/id}","created_at":"2014-08-04T11:14:51Z","updated_at":"2015-05-07T13:57:26Z","pushed_at":"2015-05-07T16:55:50Z","git_url":"git://github.com/OpenKMIP/PyKMIP.git","ssh_url":"git@github.com:OpenKMIP/PyKMIP.git","clone_url":"https://github.com/OpenKMIP/PyKMIP.git","svn_url":"https://github.com/OpenKMIP/PyKMIP","homepage":null,"size":1203,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12"},"html":{"href":"https://github.com/OpenKMIP/PyKMIP/pull/12"},"issue":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/12"},"comments":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/OpenKMIP/PyKMIP/statuses/d396403536d8de90834fa8624572ed3ced747ce3"}}}}