-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSensitiveDataVariable.java
More file actions
41 lines (35 loc) · 1.16 KB
/
SensitiveDataVariable.java
File metadata and controls
41 lines (35 loc) · 1.16 KB
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
39
40
41
import java.util.*;
public class SensitiveDataVariable {
public String scope;
public String name;
public String shortMessage;
public String message;
public boolean memoryLocked;
public boolean valueSet;
public boolean valueCleared;
public boolean isSecure;
public boolean[] stepsApplied = new boolean[UIUtils.SD_EV_MEMORYUNLOCKED+1];
public SensitiveDataVariable() { }
public SensitiveDataVariable(String scopeIn, String nameIn) {
scope = scopeIn;
name = nameIn;
memoryLocked = valueSet = valueCleared = false;
isSecure = true;
// message = "Declared variable";
// shortMessage = "Declared";
for (int n = 0; n <= UIUtils.SD_EV_MEMORYUNLOCKED; ++n) stepsApplied[n] = false;
}
public SensitiveDataVariable newInstance() {
SensitiveDataVariable var = new SensitiveDataVariable();
var.scope = scope;
var.name = name;
var.shortMessage = "";
var.message = "";
var.memoryLocked = memoryLocked;
var.valueSet = valueSet;
var.valueCleared = valueCleared;
var.isSecure = isSecure;
for (int n = 0; n <= UIUtils.SD_EV_MEMORYUNLOCKED; ++n) var.stepsApplied[n] = stepsApplied[n];
return var;
}
}