-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathKeystore.hx
40 lines (25 loc) · 885 Bytes
/
Keystore.hx
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
package project;
class Keystore {
public var alias:String;
public var aliasPassword:String;
public var password:String;
public var path:String;
public var type:String;
public function new (path:String = null, password:String = null, alias:String = null, aliasPassword:String = null) {
this.path = path;
this.password = password;
this.alias = alias;
this.aliasPassword = aliasPassword;
}
public function clone ():Keystore {
return new Keystore (path, password, alias, aliasPassword);
}
public function merge (keystore:Keystore):Void {
if (keystore != null) {
if (keystore.path != null && keystore.path != "") path = keystore.path;
if (keystore.password != null) path = keystore.password;
if (keystore.alias != null) path = keystore.alias;
if (keystore.aliasPassword != null) path = keystore.aliasPassword;
}
}
}