summaryrefslogtreecommitdiff
path: root/tlsexternalcertprovider/src/main/aidl/de/blinkt/openvpn/api/ExternalCertificateProvider.aidl
blob: d1e1a4bf430a4a025f7d7bf74615ac3418f00294 (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
// ExternalCertificateProvider.aidl
package de.blinkt.openvpn.api;


/*
 * This is very simple interface that is specialised to have only the minimal set of crypto
 * operation that are needed for OpenVPN to authenticate with an external certificate
 */
interface ExternalCertificateProvider {
    /**
     * Requests signing the data with RSA/ECB/PKCS1PADDING
     * for RSA certficate and with NONEwithECDSA for EC certificates
     * @parm alias the parameter that
     */
    byte[] getSignedData(String alias, in byte[] data);

    /**
     * Requests a
     */
    String[] getCertificateChain(in String alias);

    /**
     * request an Intent that should be started when user uses the select certificate box
     * the already selected alias will be provided in the extra android.security.extra.KEY_ALIAS
     * if applicable
     */

}