HomeSort by relevance Sort by last modified time
    Searched refs:keyStore (Results 1 - 25 of 29) sorted by null

1 2

  /external/conscrypt/src/platform/java/org/conscrypt/
TrustManagerFactoryImpl.java 22 import java.security.KeyStore;
38 private KeyStore keyStore;
41 * @see javax.net.ssl.TrustManagerFactorySpi#engineInit(KeyStore)
44 public void engineInit(KeyStore ks) throws KeyStoreException {
46 keyStore = ks;
48 keyStore = KeyStore.getInstance("AndroidCAStore");
50 keyStore.load(null, null);
76 if (keyStore == null)
    [all...]
TrustManagerImpl.java 22 import java.security.KeyStore;
64 private final KeyStore rootKeyStore;
98 * Creates X509TrustManager based on a keystore
100 * @param keyStore
102 public TrustManagerImpl(KeyStore keyStore) {
103 this(keyStore, null);
109 public TrustManagerImpl(KeyStore keyStore, CertPinManager manager) {
110 this(keyStore, manager, null)
    [all...]
  /external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/provider/jsse/
JSSETestData.java 21 import java.security.KeyStore;
41 private static KeyStore keyStore;
46 String ksDefaultType = KeyStore.getDefaultType();
50 keyStore = KeyStore.getInstance(ksDefaultType);
51 keyStore.load(is, KS_PASSWORD);
54 kmf.init(keyStore, KS_PASSWORD);
57 tmf.init(keyStore);
86 public static KeyStore getKeyStore() throws Exception
    [all...]
  /external/conscrypt/src/main/java/org/conscrypt/
KeyManagerFactoryImpl.java 24 import java.security.KeyStore;
41 private KeyStore keyStore;
47 * @see KeyManagerFactorySpi#engineInit(KeyStore ks, char[] password)
50 protected void engineInit(KeyStore ks, char[] password)
54 keyStore = ks;
61 keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
62 String keyStoreName = System.getProperty("javax.net.ssl.keyStore");
    [all...]
KeyManagerImpl.java 20 import java.security.KeyStore;
21 import java.security.KeyStore.PrivateKeyEntry;
58 * @param keyStore
61 public KeyManagerImpl(KeyStore keyStore, char[] pwd) {
65 aliases = keyStore.aliases();
72 if (keyStore.entryInstanceOf(alias, KeyStore.PrivateKeyEntry.class)) {
73 final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) keyStor
    [all...]
  /external/apache-harmony/x-net/src/test/java/javax/net/ssl/
MyKeyManagerFactorySpi.java 25 import java.security.KeyStore;
38 protected void engineInit(KeyStore ks, char[] password)
45 throw new UnrecoverableKeyException("Incorrect keystore");
73 private KeyStore keyStore;
76 public Parameters(KeyStore ks, char[] pass) {
77 this.keyStore = ks;
81 public KeyStore getKeyStore() {
82 return keyStore;
MyTrustManagerFactorySpi.java 25 import java.security.KeyStore;
35 protected void engineInit(KeyStore ks) throws KeyStoreException {
37 throw new KeyStoreException("Not supported operation for null KeyStore");
65 private KeyStore keyStore;
67 public Parameters(KeyStore ks) {
68 this.keyStore = ks;
71 public KeyStore getKeyStore() {
72 return keyStore;
  /external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/
MyTrustManagerFactorySpi.java 21 import java.security.KeyStore;
35 protected void engineInit(KeyStore ks) throws KeyStoreException {
37 throw new KeyStoreException("Not supported operation for null KeyStore");
65 private KeyStore keyStore;
67 public Parameters(KeyStore ks) {
68 this.keyStore = ks;
71 public KeyStore getKeyStore() {
72 return keyStore;
MyKeyManagerFactorySpi.java 21 import java.security.KeyStore;
38 protected void engineInit(KeyStore ks, char[] password)
45 throw new UnrecoverableKeyException("Incorrect keystore");
73 private KeyStore keyStore;
76 public Parameters(KeyStore ks, char[] pass) {
77 this.keyStore = ks;
81 public KeyStore getKeyStore() {
82 return keyStore;
  /external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/
SslContextBuilder.java 27 import java.security.KeyStore;
89 KeyStore keyStore = newEmptyKeyStore(password);
91 keyStore.setKeyEntry("private", keyPair.getPrivate(), password, certificateChain);
92 keyStore.setCertificateEntry("cert", certificate);
97 keyManagerFactory.init(keyStore, password);
100 trustManagerFactory.init(keyStore);
132 private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException {
134 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType())
    [all...]
  /development/samples/Vault/src/com/example/android/vault/
SecretKeyWrapper.java 27 import java.security.KeyStore;
37 * the platform {@link KeyStore}. This allows us to protect symmetric keys with
57 final KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore");
58 keyStore.load(null);
60 if (!keyStore.containsAlias(alias)) {
66 final KeyStore.PrivateKeyEntry entry = (KeyStore.PrivateKeyEntry) keyStore.getEntry
    [all...]
  /cts/tests/tests/net/src/android/net/http/cts/
X509TrustManagerExtensionsTest.java 25 import java.security.KeyStore;
57 // Test without adding cert to keystore.
58 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
60 new X509TrustManagerExtensions(new TrustManagerImpl(keyStore));
63 // Test with cert added to keystore.
74 new X509TrustManagerExtensions(new TrustManagerImpl(keyStore, null, tcs));
  /cts/tests/tests/security/src/android/security/cts/
CertificateTest.java 25 import java.security.KeyStore;
116 KeyStore keyStore = KeyStore.getInstance("AndroidCAStore");
117 keyStore.load(null, null);
119 List<String> aliases = Collections.list(keyStore.aliases());
124 assertTrue(keyStore.isCertificateEntry(alias));
125 X509Certificate certificate = (X509Certificate) keyStore.getCertificate(alias);
  /external/conscrypt/src/test/java/org/conscrypt/
TrustManagerImplTest.java 24 import java.security.KeyStore;
76 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
109 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
123 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
145 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
174 KeyStore keyStore = TestKeyStore.createKeyStore();
175 keyStore.setCertificateEntry("alias", ca);
179 tmf.init(keyStore);
188 KeyStore keyStore = TestKeyStore.createKeyStore()
    [all...]
NativeCryptoTest.java 32 import java.security.KeyStore;
33 import java.security.KeyStore.PrivateKeyEntry;
137 KeyStore ks = TestKeyStore.getClient().keyStore;
    [all...]
  /external/nist-sip/java/gov/nist/core/net/
SslNetworkLayer.java 38 import java.security.KeyStore;
77 KeyStore keyStore = KeyStore.getInstance(keyStoreType);
78 KeyStore trustStore = KeyStore.getInstance(keyStoreType);
79 keyStore.load(new FileInputStream(keyStoreFile), keyStorePassword);
82 kmFactory.init(keyStore, keyStorePassword);
  /external/chromium_org/android_webview/java/src/org/chromium/android_webview/
AwContentsClientBridge.java 45 protected AwContentsClientBridge(DefaultAndroidKeyStore keyStore,
47 mLocalKeyStore = keyStore;
51 public AwContentsClientBridge(AwContentsClient client, DefaultAndroidKeyStore keyStore,
55 mLocalKeyStore = keyStore;
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KeyStoreTest.java 25 import java.security.KeyStore;
55 * Tests for <code>KeyStore</code> constructor and methods
62 private static final String defaultType = "KeyStore";
70 private static String NotSupportMsg = "Default KeyStore type is not supported";
74 public KeyStore[] createKS() throws Exception {
76 KeyStore[] kpg = new KeyStore[3];
78 kpg[0] = KeyStore.getInstance(defaultType);
79 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider);
80 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName)
    [all...]
KeyStore2Test.java 28 import java.security.KeyStore;
141 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType());
160 * @tests java.security.KeyStore#aliases()
164 // java.security.KeyStore.aliases()
170 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType());
173 // KeyStore keyTest
    [all...]
  /cts/libs/testserver/src/android/webkit/cts/
TestWebServer.java 39 import java.security.KeyStore;
497 * Defines the keystore contents for the server, BKS version. Holds just a
529 * Loads a keystore from a base64-encoded String. Returns the KeyManager[]
536 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
537 keyStore.load(inputStream, PASSWORD.toCharArray());
542 keyManagerFactory.init(keyStore, PASSWORD.toCharArray());
CtsTestServer.java 65 import java.security.KeyStore;
    [all...]
  /external/chromium_org/net/test/android/javatests/src/org/chromium/net/test/util/
TestWebServer.java 36 import java.security.KeyStore;
494 * Defines the keystore contents for the server, BKS version. Holds just a
526 * Loads a keystore from a base64-encoded String. Returns the KeyManager[]
533 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
534 keyStore.load(inputStream, PASSWORD.toCharArray());
539 keyManagerFactory.init(keyStore, PASSWORD.toCharArray());
  /external/chromium_org/net/android/java/src/org/chromium/net/
X509Util.java 23 import java.security.KeyStore;
129 * BroadcastReceiver that listens to change in the system keystore to invalidate certificate
139 private static KeyStore sTestKeyStore;
145 private static KeyStore sSystemKeyStore;
149 * trust anchor is a system trust anchor or user-installed. The KeyStore API alone is not
163 * True if the system key store has been loaded. If the "AndroidCAStore" KeyStore instance
194 sSystemKeyStore = KeyStore.getInstance("AndroidCAStore");
214 sTestKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());
238 private static X509TrustManagerImplementation createTrustManager(KeyStore keyStore) throw
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyPairGeneratorTest.java 17 package android.keystore.cts;
27 import java.security.KeyStore;
63 private KeyStore mKeyStore;
87 mKeyStore = KeyStore.getInstance("AndroidKeyStore");
442 KeyStore.Entry entry = mKeyStore.getEntry(alias, null);
445 assertTrue("Entry should be a PrivateKeyEntry", entry instanceof KeyStore.PrivateKeyEntry);
446 KeyStore.PrivateKeyEntry privEntry = (KeyStore.PrivateKeyEntry) entry;
488 TestKeyStore.getIntermediateCa().keyStore);
494 serverKeyStore.keyStore.setCertificateEntry("client-selfSigned", x509userCert)
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
HttpsURLConnectionTest.java 36 import java.security.KeyStore;
57 * type of the default KeyStore installed in the system in lower case. <br>
58 * For example: if default KeyStore type in the system is BKS (i.e.
59 * java.security file sets up the property keystore.type=BKS), thus classpath
    [all...]

Completed in 756 milliseconds

1 2