{"action":"created","comment":{"url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/comments/23767271","id":23767271,"diff_hunk":"@@ -62,21 +38,10 @@ private CryptoSharedPreferencesBaseImpl(android.content.Context context) throws\n         publicKeyBase64Str = toBase64(publicKey);\n     }\n \n-    @Override\n-    public String getPublicKeyBase64Str() {\n-        return publicKeyBase64Str;\n-    }\n-\n-    protected PrivateKey getPrivateKey() {\n-        return privateKey;\n-    }\n-\n-    @Override\n-    public String sign(String message) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {\n-        Signature sign = Signature.getInstance(DIGEST_ALGORITHM);\n-        sign.initSign(getPrivateKey());\n-        sign.update(message.getBytes());\n-        return new String(Base64.encode(sign.sign(), Base64.DEFAULT));\n+    private static SharedPreferences getSharedPreferences(Context context) {\n+        return context.getSharedPreferences(\n+                    context.getPackageName() + KLARNA,","path":"klarna-on-demand/src/main/java/com/klarna/ondemand/crypto/SharedPreferencesCryptoImpl.java","position":82,"original_position":82,"commit_id":"994ddb7efc2529932acef86dc85651c94b9c13cd","original_commit_id":"994ddb7efc2529932acef86dc85651c94b9c13cd","user":{"login":"yuval-netanel","id":2931327,"avatar_url":"https://avatars.githubusercontent.com/u/2931327?v=3","gravatar_id":"","url":"https://api.github.com/users/yuval-netanel","html_url":"https://github.com/yuval-netanel","followers_url":"https://api.github.com/users/yuval-netanel/followers","following_url":"https://api.github.com/users/yuval-netanel/following{/other_user}","gists_url":"https://api.github.com/users/yuval-netanel/gists{/gist_id}","starred_url":"https://api.github.com/users/yuval-netanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuval-netanel/subscriptions","organizations_url":"https://api.github.com/users/yuval-netanel/orgs","repos_url":"https://api.github.com/users/yuval-netanel/repos","events_url":"https://api.github.com/users/yuval-netanel/events{/privacy}","received_events_url":"https://api.github.com/users/yuval-netanel/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-01-29T13:38:01Z","updated_at":"2015-01-29T13:38:01Z","html_url":"https://github.com/klarna/klarna-on-demand-android/pull/10#discussion_r23767271","pull_request_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/comments/23767271"},"html":{"href":"https://github.com/klarna/klarna-on-demand-android/pull/10#discussion_r23767271"},"pull_request":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10","id":28212464,"html_url":"https://github.com/klarna/klarna-on-demand-android/pull/10","diff_url":"https://github.com/klarna/klarna-on-demand-android/pull/10.diff","patch_url":"https://github.com/klarna/klarna-on-demand-android/pull/10.patch","issue_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/10","number":10,"state":"open","locked":false,"title":"Iaco 571 purchase signature for android 4 3","user":{"login":"yuval-netanel","id":2931327,"avatar_url":"https://avatars.githubusercontent.com/u/2931327?v=3","gravatar_id":"","url":"https://api.github.com/users/yuval-netanel","html_url":"https://github.com/yuval-netanel","followers_url":"https://api.github.com/users/yuval-netanel/followers","following_url":"https://api.github.com/users/yuval-netanel/following{/other_user}","gists_url":"https://api.github.com/users/yuval-netanel/gists{/gist_id}","starred_url":"https://api.github.com/users/yuval-netanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuval-netanel/subscriptions","organizations_url":"https://api.github.com/users/yuval-netanel/orgs","repos_url":"https://api.github.com/users/yuval-netanel/repos","events_url":"https://api.github.com/users/yuval-netanel/events{/privacy}","received_events_url":"https://api.github.com/users/yuval-netanel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-28T17:29:09Z","updated_at":"2015-01-29T13:38:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d13e43719fe888bd7b84c3798c9ec773d27a822e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10/commits","review_comments_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10/comments","review_comment_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/comments/{number}","comments_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/10/comments","statuses_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/statuses/994ddb7efc2529932acef86dc85651c94b9c13cd","head":{"label":"klarna:IACO-571-purchase-signature-for-android-4_3","ref":"IACO-571-purchase-signature-for-android-4_3","sha":"994ddb7efc2529932acef86dc85651c94b9c13cd","user":{"login":"klarna","id":394540,"avatar_url":"https://avatars.githubusercontent.com/u/394540?v=3","gravatar_id":"","url":"https://api.github.com/users/klarna","html_url":"https://github.com/klarna","followers_url":"https://api.github.com/users/klarna/followers","following_url":"https://api.github.com/users/klarna/following{/other_user}","gists_url":"https://api.github.com/users/klarna/gists{/gist_id}","starred_url":"https://api.github.com/users/klarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klarna/subscriptions","organizations_url":"https://api.github.com/users/klarna/orgs","repos_url":"https://api.github.com/users/klarna/repos","events_url":"https://api.github.com/users/klarna/events{/privacy}","received_events_url":"https://api.github.com/users/klarna/received_events","type":"Organization","site_admin":false},"repo":{"id":29127570,"name":"klarna-on-demand-android","full_name":"klarna/klarna-on-demand-android","owner":{"login":"klarna","id":394540,"avatar_url":"https://avatars.githubusercontent.com/u/394540?v=3","gravatar_id":"","url":"https://api.github.com/users/klarna","html_url":"https://github.com/klarna","followers_url":"https://api.github.com/users/klarna/followers","following_url":"https://api.github.com/users/klarna/following{/other_user}","gists_url":"https://api.github.com/users/klarna/gists{/gist_id}","starred_url":"https://api.github.com/users/klarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klarna/subscriptions","organizations_url":"https://api.github.com/users/klarna/orgs","repos_url":"https://api.github.com/users/klarna/repos","events_url":"https://api.github.com/users/klarna/events{/privacy}","received_events_url":"https://api.github.com/users/klarna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/klarna/klarna-on-demand-android","description":"Klarna On Demand SDK for Android","fork":false,"url":"https://api.github.com/repos/klarna/klarna-on-demand-android","forks_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/forks","keys_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/teams","hooks_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/hooks","issue_events_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/events{/number}","events_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/events","assignees_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/assignees{/user}","branches_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/branches{/branch}","tags_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/tags","blobs_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/statuses/{sha}","languages_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/languages","stargazers_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/stargazers","contributors_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/contributors","subscribers_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/subscribers","subscription_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/subscription","commits_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/comments/{number}","contents_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/contents/{+path}","compare_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/merges","archive_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/downloads","issues_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues{/number}","pulls_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls{/number}","milestones_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/milestones{/number}","notifications_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/labels{/name}","releases_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/releases{/id}","created_at":"2015-01-12T09:13:58Z","updated_at":"2015-01-29T12:15:48Z","pushed_at":"2015-01-29T12:15:52Z","git_url":"git://github.com/klarna/klarna-on-demand-android.git","ssh_url":"git@github.com:klarna/klarna-on-demand-android.git","clone_url":"https://github.com/klarna/klarna-on-demand-android.git","svn_url":"https://github.com/klarna/klarna-on-demand-android","homepage":null,"size":942,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"klarna:master","ref":"master","sha":"0a9979b5f19ab8f09d7a550be4264f4f744eee69","user":{"login":"klarna","id":394540,"avatar_url":"https://avatars.githubusercontent.com/u/394540?v=3","gravatar_id":"","url":"https://api.github.com/users/klarna","html_url":"https://github.com/klarna","followers_url":"https://api.github.com/users/klarna/followers","following_url":"https://api.github.com/users/klarna/following{/other_user}","gists_url":"https://api.github.com/users/klarna/gists{/gist_id}","starred_url":"https://api.github.com/users/klarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klarna/subscriptions","organizations_url":"https://api.github.com/users/klarna/orgs","repos_url":"https://api.github.com/users/klarna/repos","events_url":"https://api.github.com/users/klarna/events{/privacy}","received_events_url":"https://api.github.com/users/klarna/received_events","type":"Organization","site_admin":false},"repo":{"id":29127570,"name":"klarna-on-demand-android","full_name":"klarna/klarna-on-demand-android","owner":{"login":"klarna","id":394540,"avatar_url":"https://avatars.githubusercontent.com/u/394540?v=3","gravatar_id":"","url":"https://api.github.com/users/klarna","html_url":"https://github.com/klarna","followers_url":"https://api.github.com/users/klarna/followers","following_url":"https://api.github.com/users/klarna/following{/other_user}","gists_url":"https://api.github.com/users/klarna/gists{/gist_id}","starred_url":"https://api.github.com/users/klarna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klarna/subscriptions","organizations_url":"https://api.github.com/users/klarna/orgs","repos_url":"https://api.github.com/users/klarna/repos","events_url":"https://api.github.com/users/klarna/events{/privacy}","received_events_url":"https://api.github.com/users/klarna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/klarna/klarna-on-demand-android","description":"Klarna On Demand SDK for Android","fork":false,"url":"https://api.github.com/repos/klarna/klarna-on-demand-android","forks_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/forks","keys_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/teams","hooks_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/hooks","issue_events_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/events{/number}","events_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/events","assignees_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/assignees{/user}","branches_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/branches{/branch}","tags_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/tags","blobs_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/statuses/{sha}","languages_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/languages","stargazers_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/stargazers","contributors_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/contributors","subscribers_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/subscribers","subscription_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/subscription","commits_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/comments/{number}","contents_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/contents/{+path}","compare_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/merges","archive_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/downloads","issues_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues{/number}","pulls_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls{/number}","milestones_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/milestones{/number}","notifications_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/labels{/name}","releases_url":"https://api.github.com/repos/klarna/klarna-on-demand-android/releases{/id}","created_at":"2015-01-12T09:13:58Z","updated_at":"2015-01-29T12:15:48Z","pushed_at":"2015-01-29T12:15:52Z","git_url":"git://github.com/klarna/klarna-on-demand-android.git","ssh_url":"git@github.com:klarna/klarna-on-demand-android.git","clone_url":"https://github.com/klarna/klarna-on-demand-android.git","svn_url":"https://github.com/klarna/klarna-on-demand-android","homepage":null,"size":942,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10"},"html":{"href":"https://github.com/klarna/klarna-on-demand-android/pull/10"},"issue":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/10"},"comments":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/klarna/klarna-on-demand-android/statuses/994ddb7efc2529932acef86dc85651c94b9c13cd"}}}}