forked from FunkinDroidTeam/lime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKeystore.hx
34 lines (30 loc) · 856 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
package lime.tools;
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;
}
}
}