-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPasswordAnalysis.java
More file actions
38 lines (31 loc) · 904 Bytes
/
Copy pathPasswordAnalysis.java
File metadata and controls
38 lines (31 loc) · 904 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.mrhays.security.passwordchecker;
import java.util.List;
public class PasswordAnalysis {
private final PasswordRating rating;
private final int score;
private final List<String> positiveChecks;
private final List<String> suggestions;
public PasswordAnalysis(
PasswordRating rating,
int score,
List<String> positiveChecks,
List<String> suggestions
) {
this.rating = rating;
this.score = score;
this.positiveChecks = List.copyOf(positiveChecks);
this.suggestions = List.copyOf(suggestions);
}
public PasswordRating getRating() {
return rating;
}
public int getScore() {
return score;
}
public List<String> getPositiveChecks() {
return positiveChecks;
}
public List<String> getSuggestions() {
return suggestions;
}
}