HomeSort by relevance Sort by last modified time
    Searched defs:KeyStore (Results 1 - 23 of 23) sorted by null

  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KSCallbackHandlerProtectionTest.java 26 import java.security.KeyStore;
37 * Tests for <code>KeyStore.CallbackHandlerProtection> class constructor and methods
43 * Test for <code>KeyStore.CallbackHandlerProtection(CallbackHandler handler)</code>
49 new KeyStore.CallbackHandlerProtection(null);
64 new KeyStore.CallbackHandlerProtection(new TestCallbackHandler());
77 KeyStore.CallbackHandlerProtection ksCBH = new KeyStore.CallbackHandlerProtection(cbh);
KSPrivateKeyEntryTest.java 25 import java.security.KeyStore;
37 * Tests for <code>KeyStore.PrivateKeyEntry</code> class constructor and methods
66 new KeyStore.PrivateKeyEntry(pk, certs);
82 new KeyStore.PrivateKeyEntry(pk, chain);
88 new KeyStore.PrivateKeyEntry(pk, chain);
102 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
117 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
129 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry(
141 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry
    [all...]
KeyStoreBuilderTest.java 27 import java.security.KeyStore;
47 private KeyStore.PasswordProtection protPass = new KeyStore.PasswordProtection(
52 private KeyStore.CallbackHandlerProtection callbackHand = new KeyStore.CallbackHandlerProtection(
67 "KeyStore." + KeyStore.getDefaultType())[0];
87 * test for method newInstance(KeyStore, KeyStore.ProtectionParameter)
95 KeyStore.Builder.newInstance(null, null)
    [all...]
KeyStore4Test.java 15 import java.security.KeyStore;
23 import java.security.KeyStore.Entry;
24 import java.security.KeyStore.ProtectionParameter;
31 KeyStore keyStore;
32 KeyStore uninitialized;
33 KeyStore failing;
43 keyStore = KeyStore.getInstance(KEY_STORE_TYPE);
44 keyStore.load(null, "PASSWORD".toCharArray())
    [all...]
  /frameworks/base/core/tests/coretests/src/android/net/http/
X509TrustManagerExtensionsTest.java 19 import java.security.KeyStore;
53 String defaultType = KeyStore.getDefaultType();
54 TrustManagerImpl tmi = new TrustManagerImpl(KeyStore.getInstance(defaultType));
61 String defaultKeystoreType = KeyStore.getDefaultType();
62 tmf.init(KeyStore.getInstance(defaultKeystoreType));
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KSPrivateKeyEntryTest.java 35 * Tests for <code>KeyStore.PrivateKeyEntry</code> class constructor and methods
72 new KeyStore.PrivateKeyEntry(pk, certs);
88 new KeyStore.PrivateKeyEntry(pk, chain);
94 new KeyStore.PrivateKeyEntry(pk, chain);
108 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
123 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
135 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry(
147 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
KeyStore_Impl1Test.java 26 import java.security.KeyStore;
46 * Tests for <code>KeyStore</code> constructor and methods
65 private static String NotSupportMsg = "Default KeyStore type is not supported";
67 public KeyStore[] createKS() throws Exception {
69 KeyStore[] kpg = new KeyStore[3];
71 kpg[0] = KeyStore.getInstance(defaultType);
72 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider);
73 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName);
84 KeyStore ks
    [all...]
KeyStore_Impl2Test.java 26 import java.security.KeyStore;
48 * Tests for <code>KeyStore</code> constructor and methods
57 private static final String defaultAlg = "KeyStore";
67 validValues[2] = "kEyStOrE";
68 validValues[3] = "KeysTORE";
89 private void checkResult(KeyStore keyS) throws KeyStoreException,
120 KeyStore.TrustedCertificateEntry entry = new KeyStore.TrustedCertificateEntry(
155 KeyStore.LoadStoreParameter lParam = new MyLoadStoreParams(
156 new KeyStore.PasswordProtection(new char[0]));
    [all...]
KSBuilder_ImplTest.java 28 import java.security.KeyStore;
50 * Tests for <code>KeyStore.Builder</code> class
56 private KeyStore.PasswordProtection protPass = new KeyStore.PasswordProtection(pass);
58 private KeyStore.CallbackHandlerProtection callbackHand = new KeyStore.CallbackHandlerProtection(tmpCall);
74 // Creates empty KeyStore and loads it to file
77 File ff = File.createTempFile("KSBuilder_ImplTest", "keystore");
81 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType())
    [all...]
  /frameworks/base/keystore/java/android/security/
KeyStore.java 32 public class KeyStore {
33 private static final String TAG = "KeyStore";
61 private KeyStore(IKeystoreService binder) {
65 public static KeyStore getInstance() {
66 IKeystoreService keystore = IKeystoreService.Stub.asInterface(ServiceManager local
67 .getService("android.security.keystore"));
68 return new KeyStore(keystore);
88 Log.w(TAG, "Cannot connect to keystore", e);
108 Log.w(TAG, "Cannot connect to keystore", e)
    [all...]
  /libcore/luni/src/main/java/java/security/
KeyStore.java 39 * {@code KeyStore} is responsible for maintaining cryptographic keys and their
43 * 'keystore.type'} property in the file named {@code
49 public class KeyStore {
51 // Store KeyStore SERVICE name
52 private static final String SERVICE = "KeyStore";
57 // Store KeyStore property name
58 private static final String PROPERTY_NAME = "keystore.type";
60 // Store default KeyStore type
63 // Store KeyStore state (initialized or not)
76 * Constructs a new instance of {@code KeyStore} with the given arguments
    [all...]
  /system/security/keystore/
keystore.cpp 18 #define LOG_TAG "keystore"
51 #include <keystore/IKeystoreService.h>
59 #include <keystore/keystore.h>
63 /* KeyStore is a secured storage for key-value pairs. In this implementation,
109 ALOGE("could not find any keystore module");
821 salt = (uint8_t*) "keystore";
823 saltSize = sizeof("keystore");
870 class KeyStore {
872 KeyStore(Entropy* entropy, keymaster_device_t* device
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/
KeyStoreTest.java 28 import java.security.KeyStore;
29 import java.security.KeyStore.Builder;
30 import java.security.KeyStore.Entry;
31 import java.security.KeyStore.LoadStoreParameter;
32 import java.security.KeyStore.PasswordProtection;
33 import java.security.KeyStore.PrivateKeyEntry;
34 import java.security.KeyStore.ProtectionParameter;
35 import java.security.KeyStore.SecretKeyEntry;
36 import java.security.KeyStore.TrustedCertificateEntry;
126 public static List<KeyStore> keyStores() throws Exception
    [all...]
  /prebuilts/sdk/10/
android.jar 
  /prebuilts/sdk/11/
android.jar 
  /prebuilts/sdk/13/
android.jar 
  /prebuilts/sdk/16/
android.jar 
  /prebuilts/sdk/5/
android.jar 
  /prebuilts/sdk/6/
android.jar 
  /prebuilts/sdk/7/
android.jar 
  /prebuilts/sdk/8/
android.jar 
  /prebuilts/sdk/9/
android.jar 
  /prebuilts/sdk/4/
android.jar 

Completed in 963 milliseconds