{"action":"created","comment":{"url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/comments/34885775","id":34885775,"diff_hunk":"@@ -0,0 +1,317 @@\n+package edu.umich.ctools.sectionsUtilityTool;\n+import java.util.Arrays;\n+import java.util.List;\n+import java.util.Properties;\n+import java.util.ArrayList;\n+import java.util.Map;\n+import java.util.HashMap;\n+import java.lang.reflect.*;\n+import java.io.IOException;\n+import java.io.FileInputStream;\n+import java.io.File;\n+import java.io.InputStream;\n+import java.net.MalformedURLException;\n+import java.net.URL;\n+import java.nio.charset.Charset;\n+import java.nio.charset.StandardCharsets;\n+import java.nio.file.Files;\n+import java.nio.file.Paths;\n+import java.security.KeyStore;\n+import java.security.Principal;\n+import java.security.PrivateKey;\n+import java.security.NoSuchAlgorithmException;\n+import java.security.KeyStoreException;\n+import java.security.KeyManagementException;\n+import java.security.UnrecoverableKeyException;\n+import java.security.interfaces.RSAPrivateKey;\n+import java.security.spec.InvalidKeySpecException;\n+import java.security.cert.X509Certificate;\n+import java.security.cert.Certificate;\n+import java.security.cert.CertificateFactory;\n+import java.security.cert.CertificateException;\n+import java.security.SecureRandom;\n+import java.security.spec.PKCS8EncodedKeySpec;\n+import java.security.KeyFactory;\n+\n+import javax.net.ssl.*;\n+import javax.net.SocketFactory;\n+import javax.mail.*;\n+import javax.mail.internet.*;\n+\n+import org.apache.commons.logging.Log;\n+import org.apache.commons.logging.LogFactory;\n+import org.apache.xmlrpc.client.XmlRpcClient;\n+import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;\n+import org.apache.xmlrpc.client.XmlRpcSun15HttpTransportFactory;\n+\n+import edu.umich.its.lti.utils.PropertiesUtilities;\n+\n+//TODO - Email Templates\n+\n+public class Friend \n+{\n+\n+\tprivate static Log M_log = LogFactory.getLog(Friend.class);\n+\n+\t//Currently it uses xmlrpc for communication\n+\tpublic static XmlRpcClient Xclient;\n+\n+\tprotected static String friendUrl = null;\n+\tprotected static String contactEmail = null;\n+\tprotected static String emailMessage = null;\n+\tprotected static String referrerUrl = null;\n+\tprotected static String ksFileName = null;\n+\tprotected static String ksPwd = null;\n+\tprotected static String friendEmailFile = null;\n+\tprotected static String requesterEmailFile = null;\n+\n+\tpublic final String KEYSTORETYPE_PKCS12 = \"pkcs12\";\n+\n+\tpublic final String TRUSTSTORETYPE_JKS = \"jks\";\n+","path":"src/main/java/edu/umich/ctools/sectionsUtilityTool/Friend.java","position":71,"original_position":71,"commit_id":"8e3948244bcee8ea1cbf4a9d885930e2104e3cb3","original_commit_id":"8e3948244bcee8ea1cbf4a9d885930e2104e3cb3","user":{"login":"pushyamig","id":8579775,"avatar_url":"https://avatars.githubusercontent.com/u/8579775?v=3","gravatar_id":"","url":"https://api.github.com/users/pushyamig","html_url":"https://github.com/pushyamig","followers_url":"https://api.github.com/users/pushyamig/followers","following_url":"https://api.github.com/users/pushyamig/following{/other_user}","gists_url":"https://api.github.com/users/pushyamig/gists{/gist_id}","starred_url":"https://api.github.com/users/pushyamig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushyamig/subscriptions","organizations_url":"https://api.github.com/users/pushyamig/orgs","repos_url":"https://api.github.com/users/pushyamig/repos","events_url":"https://api.github.com/users/pushyamig/events{/privacy}","received_events_url":"https://api.github.com/users/pushyamig/received_events","type":"User","site_admin":false},"body":"This can be static since they are constants","created_at":"2015-07-17T12:50:05Z","updated_at":"2015-07-17T12:50:05Z","html_url":"https://github.com/tl-its-umich-edu/sectionsUtilityTool/pull/15#discussion_r34885775","pull_request_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/comments/34885775"},"html":{"href":"https://github.com/tl-its-umich-edu/sectionsUtilityTool/pull/15#discussion_r34885775"},"pull_request":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15","id":40041170,"html_url":"https://github.com/tl-its-umich-edu/sectionsUtilityTool/pull/15","diff_url":"https://github.com/tl-its-umich-edu/sectionsUtilityTool/pull/15.diff","patch_url":"https://github.com/tl-its-umich-edu/sectionsUtilityTool/pull/15.patch","issue_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/issues/15","number":15,"state":"open","locked":false,"title":"TLUNIZIN-559 Create backend for Friend Account Management","user":{"login":"dovek","id":10280669,"avatar_url":"https://avatars.githubusercontent.com/u/10280669?v=3","gravatar_id":"","url":"https://api.github.com/users/dovek","html_url":"https://github.com/dovek","followers_url":"https://api.github.com/users/dovek/followers","following_url":"https://api.github.com/users/dovek/following{/other_user}","gists_url":"https://api.github.com/users/dovek/gists{/gist_id}","starred_url":"https://api.github.com/users/dovek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dovek/subscriptions","organizations_url":"https://api.github.com/users/dovek/orgs","repos_url":"https://api.github.com/users/dovek/repos","events_url":"https://api.github.com/users/dovek/events{/privacy}","received_events_url":"https://api.github.com/users/dovek/received_events","type":"User","site_admin":false},"body":"Due: 7/17/2015\r\n@dlhaines \r\n@pushyamig \r\n\r\n","created_at":"2015-07-15T16:20:09Z","updated_at":"2015-07-17T12:50:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2a7682034286f7333109546491038e7e68e9f9a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15/commits","review_comments_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15/comments","review_comment_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/issues/15/comments","statuses_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/statuses/8e3948244bcee8ea1cbf4a9d885930e2104e3cb3","head":{"label":"dovek:master","ref":"master","sha":"8e3948244bcee8ea1cbf4a9d885930e2104e3cb3","user":{"login":"dovek","id":10280669,"avatar_url":"https://avatars.githubusercontent.com/u/10280669?v=3","gravatar_id":"","url":"https://api.github.com/users/dovek","html_url":"https://github.com/dovek","followers_url":"https://api.github.com/users/dovek/followers","following_url":"https://api.github.com/users/dovek/following{/other_user}","gists_url":"https://api.github.com/users/dovek/gists{/gist_id}","starred_url":"https://api.github.com/users/dovek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dovek/subscriptions","organizations_url":"https://api.github.com/users/dovek/orgs","repos_url":"https://api.github.com/users/dovek/repos","events_url":"https://api.github.com/users/dovek/events{/privacy}","received_events_url":"https://api.github.com/users/dovek/received_events","type":"User","site_admin":false},"repo":{"id":37533926,"name":"sectionsUtilityTool","full_name":"dovek/sectionsUtilityTool","owner":{"login":"dovek","id":10280669,"avatar_url":"https://avatars.githubusercontent.com/u/10280669?v=3","gravatar_id":"","url":"https://api.github.com/users/dovek","html_url":"https://github.com/dovek","followers_url":"https://api.github.com/users/dovek/followers","following_url":"https://api.github.com/users/dovek/following{/other_user}","gists_url":"https://api.github.com/users/dovek/gists{/gist_id}","starred_url":"https://api.github.com/users/dovek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dovek/subscriptions","organizations_url":"https://api.github.com/users/dovek/orgs","repos_url":"https://api.github.com/users/dovek/repos","events_url":"https://api.github.com/users/dovek/events{/privacy}","received_events_url":"https://api.github.com/users/dovek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dovek/sectionsUtilityTool","description":"","fork":true,"url":"https://api.github.com/repos/dovek/sectionsUtilityTool","forks_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/forks","keys_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/teams","hooks_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/hooks","issue_events_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/issues/events{/number}","events_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/events","assignees_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/assignees{/user}","branches_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/branches{/branch}","tags_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/tags","blobs_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/git/refs{/sha}","trees_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/statuses/{sha}","languages_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/languages","stargazers_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/stargazers","contributors_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/contributors","subscribers_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/subscribers","subscription_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/subscription","commits_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/commits{/sha}","git_commits_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/git/commits{/sha}","comments_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/comments{/number}","issue_comment_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/issues/comments{/number}","contents_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/contents/{+path}","compare_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/merges","archive_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/downloads","issues_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/issues{/number}","pulls_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/pulls{/number}","milestones_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/milestones{/number}","notifications_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/labels{/name}","releases_url":"https://api.github.com/repos/dovek/sectionsUtilityTool/releases{/id}","created_at":"2015-06-16T14:06:08Z","updated_at":"2015-06-16T14:06:09Z","pushed_at":"2015-07-15T16:13:11Z","git_url":"git://github.com/dovek/sectionsUtilityTool.git","ssh_url":"git@github.com:dovek/sectionsUtilityTool.git","clone_url":"https://github.com/dovek/sectionsUtilityTool.git","svn_url":"https://github.com/dovek/sectionsUtilityTool","homepage":null,"size":878,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tl-its-umich-edu:master","ref":"master","sha":"b452dd3ca108b36755d4896a50dd393f8d1596b6","user":{"login":"tl-its-umich-edu","id":8292960,"avatar_url":"https://avatars.githubusercontent.com/u/8292960?v=3","gravatar_id":"","url":"https://api.github.com/users/tl-its-umich-edu","html_url":"https://github.com/tl-its-umich-edu","followers_url":"https://api.github.com/users/tl-its-umich-edu/followers","following_url":"https://api.github.com/users/tl-its-umich-edu/following{/other_user}","gists_url":"https://api.github.com/users/tl-its-umich-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/tl-its-umich-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tl-its-umich-edu/subscriptions","organizations_url":"https://api.github.com/users/tl-its-umich-edu/orgs","repos_url":"https://api.github.com/users/tl-its-umich-edu/repos","events_url":"https://api.github.com/users/tl-its-umich-edu/events{/privacy}","received_events_url":"https://api.github.com/users/tl-its-umich-edu/received_events","type":"Organization","site_admin":false},"repo":{"id":33675673,"name":"sectionsUtilityTool","full_name":"tl-its-umich-edu/sectionsUtilityTool","owner":{"login":"tl-its-umich-edu","id":8292960,"avatar_url":"https://avatars.githubusercontent.com/u/8292960?v=3","gravatar_id":"","url":"https://api.github.com/users/tl-its-umich-edu","html_url":"https://github.com/tl-its-umich-edu","followers_url":"https://api.github.com/users/tl-its-umich-edu/followers","following_url":"https://api.github.com/users/tl-its-umich-edu/following{/other_user}","gists_url":"https://api.github.com/users/tl-its-umich-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/tl-its-umich-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tl-its-umich-edu/subscriptions","organizations_url":"https://api.github.com/users/tl-its-umich-edu/orgs","repos_url":"https://api.github.com/users/tl-its-umich-edu/repos","events_url":"https://api.github.com/users/tl-its-umich-edu/events{/privacy}","received_events_url":"https://api.github.com/users/tl-its-umich-edu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tl-its-umich-edu/sectionsUtilityTool","description":"","fork":false,"url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool","forks_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/forks","keys_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/teams","hooks_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/hooks","issue_events_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/issues/events{/number}","events_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/events","assignees_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/assignees{/user}","branches_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/branches{/branch}","tags_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/tags","blobs_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/git/refs{/sha}","trees_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/statuses/{sha}","languages_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/languages","stargazers_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/stargazers","contributors_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/contributors","subscribers_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/subscribers","subscription_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/subscription","commits_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/commits{/sha}","git_commits_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/git/commits{/sha}","comments_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/comments{/number}","issue_comment_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/issues/comments{/number}","contents_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/contents/{+path}","compare_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/merges","archive_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/downloads","issues_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/issues{/number}","pulls_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls{/number}","milestones_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/milestones{/number}","notifications_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/labels{/name}","releases_url":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/releases{/id}","created_at":"2015-04-09T15:06:37Z","updated_at":"2015-06-19T00:32:14Z","pushed_at":"2015-07-15T16:20:11Z","git_url":"git://github.com/tl-its-umich-edu/sectionsUtilityTool.git","ssh_url":"git@github.com:tl-its-umich-edu/sectionsUtilityTool.git","clone_url":"https://github.com/tl-its-umich-edu/sectionsUtilityTool.git","svn_url":"https://github.com/tl-its-umich-edu/sectionsUtilityTool","homepage":null,"size":1106,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15"},"html":{"href":"https://github.com/tl-its-umich-edu/sectionsUtilityTool/pull/15"},"issue":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/issues/15"},"comments":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/tl-its-umich-edu/sectionsUtilityTool/statuses/8e3948244bcee8ea1cbf4a9d885930e2104e3cb3"}}}}