{"action":"created","comment":{"url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/comments/52470959","id":52470959,"diff_hunk":"@@ -0,0 +1,84 @@\n+package com.efinancialcareers.utilities.validation;\n+\n+\n+import com.efinancialcareers.utilities.validation.password.PasswordConstraintsValidator;\n+import com.efinancialcareers.utilities.validation.password.PasswordStrengthCalculator;\n+import com.efinancialcareers.utilities.validation.password.PasswordValidationException;\n+\n+import javax.validation.constraints.NotNull;\n+\n+\n+public final class PasswordValidatorImpl implements PasswordValidator {\n+\n+    public static final int PASSWORD_PASS_RATE = 25;\n+\n+    public static final String PASSWORD_TOO_WEAK_MESSAGE = \"Password is too weak\";\n+\n+    private final PasswordStrengthCalculator passwordStrengthCalculator;\n+\n+    private final PasswordConstraintsValidator passwordConstraintsValidator;\n+\n+    public PasswordValidatorImpl() {\n+        this.passwordStrengthCalculator = new PasswordStrengthCalculator();\n+        this.passwordConstraintsValidator = new PasswordConstraintsValidator();\n+    }\n+\n+    public PasswordValidatorImpl(PasswordStrengthCalculator passwordStrengthCalculator,\n+                                 PasswordConstraintsValidator passwordConstraintsValidator) {\n+\n+        this.passwordStrengthCalculator = passwordStrengthCalculator;\n+        this.passwordConstraintsValidator = passwordConstraintsValidator;\n+\n+    }\n+","path":"src/main/java/com/efinancialcareers/utilities/validation/PasswordValidatorImpl.java","position":33,"original_position":33,"commit_id":"9bf6f9e39b0c8a8efaa278fb47841526d4514bf0","original_commit_id":"b9e565491baf89813241c4d6e3d2b842b4673522","user":{"login":"efc-michaelwiezik","id":14923308,"avatar_url":"https://avatars.githubusercontent.com/u/14923308?v=3","gravatar_id":"","url":"https://api.github.com/users/efc-michaelwiezik","html_url":"https://github.com/efc-michaelwiezik","followers_url":"https://api.github.com/users/efc-michaelwiezik/followers","following_url":"https://api.github.com/users/efc-michaelwiezik/following{/other_user}","gists_url":"https://api.github.com/users/efc-michaelwiezik/gists{/gist_id}","starred_url":"https://api.github.com/users/efc-michaelwiezik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efc-michaelwiezik/subscriptions","organizations_url":"https://api.github.com/users/efc-michaelwiezik/orgs","repos_url":"https://api.github.com/users/efc-michaelwiezik/repos","events_url":"https://api.github.com/users/efc-michaelwiezik/events{/privacy}","received_events_url":"https://api.github.com/users/efc-michaelwiezik/received_events","type":"User","site_admin":false},"body":"As above.","created_at":"2016-02-10T15:21:42Z","updated_at":"2016-02-10T15:21:42Z","html_url":"https://github.com/DiceHoldingsInc/efc-utilities/pull/2#discussion_r52470959","pull_request_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/comments/52470959"},"html":{"href":"https://github.com/DiceHoldingsInc/efc-utilities/pull/2#discussion_r52470959"},"pull_request":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2","id":58647324,"html_url":"https://github.com/DiceHoldingsInc/efc-utilities/pull/2","diff_url":"https://github.com/DiceHoldingsInc/efc-utilities/pull/2.diff","patch_url":"https://github.com/DiceHoldingsInc/efc-utilities/pull/2.patch","issue_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/2","number":2,"state":"open","locked":false,"title":"Develop","user":{"login":"efc-michaelwiezik","id":14923308,"avatar_url":"https://avatars.githubusercontent.com/u/14923308?v=3","gravatar_id":"","url":"https://api.github.com/users/efc-michaelwiezik","html_url":"https://github.com/efc-michaelwiezik","followers_url":"https://api.github.com/users/efc-michaelwiezik/followers","following_url":"https://api.github.com/users/efc-michaelwiezik/following{/other_user}","gists_url":"https://api.github.com/users/efc-michaelwiezik/gists{/gist_id}","starred_url":"https://api.github.com/users/efc-michaelwiezik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efc-michaelwiezik/subscriptions","organizations_url":"https://api.github.com/users/efc-michaelwiezik/orgs","repos_url":"https://api.github.com/users/efc-michaelwiezik/repos","events_url":"https://api.github.com/users/efc-michaelwiezik/events{/privacy}","received_events_url":"https://api.github.com/users/efc-michaelwiezik/received_events","type":"User","site_admin":false},"body":"Hey,\r\n\r\nit's initial version of the project, hence all development done directly in develop branch.\r\nIt contains only password validation extracted from the one-big-app module.\r\n\r\nPlease let me know in case of any questions.\r\n\r\nThanks & Regards,\r\n\r\nMichael","created_at":"2016-02-08T18:24:08Z","updated_at":"2016-02-10T15:21:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"198c758ee8b6810d5a7da48f885b92480c07bbac","assignee":{"login":"efc-carloscornejo","id":9087284,"avatar_url":"https://avatars.githubusercontent.com/u/9087284?v=3","gravatar_id":"","url":"https://api.github.com/users/efc-carloscornejo","html_url":"https://github.com/efc-carloscornejo","followers_url":"https://api.github.com/users/efc-carloscornejo/followers","following_url":"https://api.github.com/users/efc-carloscornejo/following{/other_user}","gists_url":"https://api.github.com/users/efc-carloscornejo/gists{/gist_id}","starred_url":"https://api.github.com/users/efc-carloscornejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efc-carloscornejo/subscriptions","organizations_url":"https://api.github.com/users/efc-carloscornejo/orgs","repos_url":"https://api.github.com/users/efc-carloscornejo/repos","events_url":"https://api.github.com/users/efc-carloscornejo/events{/privacy}","received_events_url":"https://api.github.com/users/efc-carloscornejo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2/commits","review_comments_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2/comments","review_comment_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/2/comments","statuses_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/statuses/9bf6f9e39b0c8a8efaa278fb47841526d4514bf0","head":{"label":"DiceHoldingsInc:develop","ref":"develop","sha":"9bf6f9e39b0c8a8efaa278fb47841526d4514bf0","user":{"login":"DiceHoldingsInc","id":4095898,"avatar_url":"https://avatars.githubusercontent.com/u/4095898?v=3","gravatar_id":"","url":"https://api.github.com/users/DiceHoldingsInc","html_url":"https://github.com/DiceHoldingsInc","followers_url":"https://api.github.com/users/DiceHoldingsInc/followers","following_url":"https://api.github.com/users/DiceHoldingsInc/following{/other_user}","gists_url":"https://api.github.com/users/DiceHoldingsInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DiceHoldingsInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiceHoldingsInc/subscriptions","organizations_url":"https://api.github.com/users/DiceHoldingsInc/orgs","repos_url":"https://api.github.com/users/DiceHoldingsInc/repos","events_url":"https://api.github.com/users/DiceHoldingsInc/events{/privacy}","received_events_url":"https://api.github.com/users/DiceHoldingsInc/received_events","type":"Organization","site_admin":false},"repo":{"id":50994327,"name":"efc-utilities","full_name":"DiceHoldingsInc/efc-utilities","owner":{"login":"DiceHoldingsInc","id":4095898,"avatar_url":"https://avatars.githubusercontent.com/u/4095898?v=3","gravatar_id":"","url":"https://api.github.com/users/DiceHoldingsInc","html_url":"https://github.com/DiceHoldingsInc","followers_url":"https://api.github.com/users/DiceHoldingsInc/followers","following_url":"https://api.github.com/users/DiceHoldingsInc/following{/other_user}","gists_url":"https://api.github.com/users/DiceHoldingsInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DiceHoldingsInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiceHoldingsInc/subscriptions","organizations_url":"https://api.github.com/users/DiceHoldingsInc/orgs","repos_url":"https://api.github.com/users/DiceHoldingsInc/repos","events_url":"https://api.github.com/users/DiceHoldingsInc/events{/privacy}","received_events_url":"https://api.github.com/users/DiceHoldingsInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DiceHoldingsInc/efc-utilities","description":"Utilities shared across the projects.","fork":false,"url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities","forks_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/forks","keys_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/teams","hooks_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/hooks","issue_events_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/events{/number}","events_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/events","assignees_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/assignees{/user}","branches_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/branches{/branch}","tags_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/tags","blobs_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/refs{/sha}","trees_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/statuses/{sha}","languages_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/languages","stargazers_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/stargazers","contributors_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/contributors","subscribers_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/subscribers","subscription_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/subscription","commits_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/commits{/sha}","git_commits_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/commits{/sha}","comments_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/comments{/number}","issue_comment_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/comments{/number}","contents_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/contents/{+path}","compare_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/merges","archive_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/downloads","issues_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues{/number}","pulls_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls{/number}","milestones_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/milestones{/number}","notifications_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/labels{/name}","releases_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/releases{/id}","deployments_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/deployments","created_at":"2016-02-03T11:07:45Z","updated_at":"2016-02-03T11:07:45Z","pushed_at":"2016-02-10T15:15:56Z","git_url":"git://github.com/DiceHoldingsInc/efc-utilities.git","ssh_url":"git@github.com:DiceHoldingsInc/efc-utilities.git","clone_url":"https://github.com/DiceHoldingsInc/efc-utilities.git","svn_url":"https://github.com/DiceHoldingsInc/efc-utilities","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DiceHoldingsInc:master","ref":"master","sha":"0510bca26b49f5b6d97de64a7af5b15b92334609","user":{"login":"DiceHoldingsInc","id":4095898,"avatar_url":"https://avatars.githubusercontent.com/u/4095898?v=3","gravatar_id":"","url":"https://api.github.com/users/DiceHoldingsInc","html_url":"https://github.com/DiceHoldingsInc","followers_url":"https://api.github.com/users/DiceHoldingsInc/followers","following_url":"https://api.github.com/users/DiceHoldingsInc/following{/other_user}","gists_url":"https://api.github.com/users/DiceHoldingsInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DiceHoldingsInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiceHoldingsInc/subscriptions","organizations_url":"https://api.github.com/users/DiceHoldingsInc/orgs","repos_url":"https://api.github.com/users/DiceHoldingsInc/repos","events_url":"https://api.github.com/users/DiceHoldingsInc/events{/privacy}","received_events_url":"https://api.github.com/users/DiceHoldingsInc/received_events","type":"Organization","site_admin":false},"repo":{"id":50994327,"name":"efc-utilities","full_name":"DiceHoldingsInc/efc-utilities","owner":{"login":"DiceHoldingsInc","id":4095898,"avatar_url":"https://avatars.githubusercontent.com/u/4095898?v=3","gravatar_id":"","url":"https://api.github.com/users/DiceHoldingsInc","html_url":"https://github.com/DiceHoldingsInc","followers_url":"https://api.github.com/users/DiceHoldingsInc/followers","following_url":"https://api.github.com/users/DiceHoldingsInc/following{/other_user}","gists_url":"https://api.github.com/users/DiceHoldingsInc/gists{/gist_id}","starred_url":"https://api.github.com/users/DiceHoldingsInc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiceHoldingsInc/subscriptions","organizations_url":"https://api.github.com/users/DiceHoldingsInc/orgs","repos_url":"https://api.github.com/users/DiceHoldingsInc/repos","events_url":"https://api.github.com/users/DiceHoldingsInc/events{/privacy}","received_events_url":"https://api.github.com/users/DiceHoldingsInc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DiceHoldingsInc/efc-utilities","description":"Utilities shared across the projects.","fork":false,"url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities","forks_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/forks","keys_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/teams","hooks_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/hooks","issue_events_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/events{/number}","events_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/events","assignees_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/assignees{/user}","branches_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/branches{/branch}","tags_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/tags","blobs_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/refs{/sha}","trees_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/statuses/{sha}","languages_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/languages","stargazers_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/stargazers","contributors_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/contributors","subscribers_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/subscribers","subscription_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/subscription","commits_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/commits{/sha}","git_commits_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/git/commits{/sha}","comments_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/comments{/number}","issue_comment_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/comments{/number}","contents_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/contents/{+path}","compare_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/merges","archive_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/downloads","issues_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues{/number}","pulls_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls{/number}","milestones_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/milestones{/number}","notifications_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/labels{/name}","releases_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/releases{/id}","deployments_url":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/deployments","created_at":"2016-02-03T11:07:45Z","updated_at":"2016-02-03T11:07:45Z","pushed_at":"2016-02-10T15:15:56Z","git_url":"git://github.com/DiceHoldingsInc/efc-utilities.git","ssh_url":"git@github.com:DiceHoldingsInc/efc-utilities.git","clone_url":"https://github.com/DiceHoldingsInc/efc-utilities.git","svn_url":"https://github.com/DiceHoldingsInc/efc-utilities","homepage":null,"size":19,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2"},"html":{"href":"https://github.com/DiceHoldingsInc/efc-utilities/pull/2"},"issue":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/2"},"comments":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/DiceHoldingsInc/efc-utilities/statuses/9bf6f9e39b0c8a8efaa278fb47841526d4514bf0"}}}}