blob: 3b59b7ac2c081278af13734526c4ed41341172b1 (
plain)
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
|
/*
* Copyright (c) 2012-2018 Arne Schwabe
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.externalcertprovider;
import android.app.Activity;
import android.content.Intent;
import android.security.KeyChain;
import android.os.Bundle;
public class SelectCertificateActivity extends Activity {
public static final String EXTRA_ALIAS = "de.blinkt.openvpn.api.KEY_ALIAS";
public static final String EXTRA_DESCRIPTION = "de.blinkt.openvpn.api.KEY_DESCRIPTION";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
findViewById(R.id.nicecert).setOnClickListener((v) ->
{
Intent intent = new Intent();
intent.putExtra(EXTRA_ALIAS, "mynicecert");
intent.putExtra(EXTRA_DESCRIPTION, "Super secret example key!");
setResult(RESULT_OK, intent);
finish();
});
}
}
|