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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
* Copyright (c) 2012-2016 Arne Schwabe
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.openvpn.views;
import android.content.Context;
import android.util.AttributeSet;
import androidx.preference.DialogPreference;
import de.blinkt.openvpn.R;
public class RemoteCNPreference extends DialogPreference {
private int mDNType;
private String mDn;
public RemoteCNPreference(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
public RemoteCNPreference(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
public RemoteCNPreference(Context context, AttributeSet attrs) {
super(context, attrs, 0);
}
public RemoteCNPreference(Context context) {
super(context);
}
public void setDN(String dn) {
mDn = dn;
}
public void setAuthType(int x509authtype) {
mDNType = x509authtype;
}
public String getCNText() {
return mDn;
}
public int getAuthtype() {
return mDNType;
}
@Override
public int getDialogLayoutResource() {
return R.layout.tlsremote;
}
}
|