Home | History | Annotate | Download | only in vpn2

Lines Matching refs:keystore

21 import android.security.KeyStore;
42 import java.security.KeyStore.PasswordProtection;
43 import java.security.KeyStore.PrivateKeyEntry;
57 * and install certificates to keystore.
61 /* Define a password to unlock keystore after it is reset */
63 private final int mUid = KeyStore.UID_SELF;
67 private KeyStore mKeyStore = KeyStore.getInstance();
70 * Unlock keystore and set password
80 java.security.KeyStore keystore = null;
87 keystore = java.security.KeyStore.getInstance("PKCS12");
89 keystore.load(new ByteArrayInputStream(raw), passwordProtection.getPassword());
92 Enumeration<String> aliases = keystore.aliases();
97 // The keystore is initialized for each test case, there will
98 // be only one alias in the keystore
101 java.security.KeyStore.Entry entry = keystore.getEntry(alias, passwordProtection);
167 * Extract certificate from the given file, and install it to keystore
175 // install certificate to the keystore
176 int flags = KeyStore.FLAG_ENCRYPTED;