Skip to content

Commit 0a1c3e8

Browse files
authored
Removing policy name (#302)
* Removing policy name. * Changing to MurmurHash3 for making a policy key. * Changing hash algorithm. * Removing unused arguments. * Removing unused code. Removing sys out.
1 parent 5b6cd6c commit 0a1c3e8

File tree

12 files changed

+103
-151
lines changed

12 files changed

+103
-151
lines changed

docs/docs/filter_policies/filter_policies.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ documents.
1616

1717
A policy:
1818

19-
* Must have a `name` that uniquely identifies it.
2019
* Must have a list of `identifiers` that are filters for sensitive information.
2120
* Each `identifier` , or filter, can have zero or more [filter strategies](filter-strategies.md). A filter strategy
2221
tells Phileas how to manipulate that type of sensitive information when it is identified.

src/main/java/ai/philterd/phileas/policy/Policy.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525

2626
public class Policy {
2727

28-
@SerializedName("name")
29-
@Expose
30-
private String name = "unnamed";
31-
3228
@SerializedName("config")
3329
@Expose
3430
private Config config = new Config();
@@ -65,7 +61,6 @@ public boolean equals(Object o) {
6561
@Override
6662
public int hashCode() {
6763
return new HashCodeBuilder(17, 37).
68-
append(name).
6964
append(crypto).
7065
append(identifiers).
7166
append(ignored).
@@ -74,14 +69,6 @@ public int hashCode() {
7469
toHashCode();
7570
}
7671

77-
public String getName() {
78-
return name;
79-
}
80-
81-
public void setName(String name) {
82-
this.name = name;
83-
}
84-
8572
public Identifiers getIdentifiers() {
8673
return identifiers;
8774
}

0 commit comments

Comments
 (0)