/frameworks/base/keystore/tests/src/android/security/ |
D | KeyStoreTest.java | 21 import android.security.KeyStore; 64 private KeyStore mKeyStore = null; 119 mKeyStore = KeyStore.getInstance(); in setUp() 120 if (mKeyStore.state() != KeyStore.State.UNINITIALIZED) { in setUp() 124 KeyStore.State.UNINITIALIZED, mKeyStore.state()); in setUp() 135 assertEquals(KeyStore.State.UNINITIALIZED, mKeyStore.state()); in testState() 140 assertEquals(KeyStore.State.UNLOCKED, mKeyStore.state()); in testPassword() 147 assertTrue(mKeyStore.put(TEST_KEYNAME, TEST_KEYVALUE, KeyStore.UID_SELF, in testGet() 148 KeyStore.FLAG_ENCRYPTED)); in testGet() 154 assertFalse(mKeyStore.put(TEST_KEYNAME, TEST_KEYVALUE, KeyStore.UID_SELF, in testPut() [all …]
|
D | AndroidKeyStoreTest.java | 34 import java.security.KeyStore.Entry; 35 import java.security.KeyStore.PrivateKeyEntry; 36 import java.security.KeyStore.TrustedCertificateEntry; 66 private android.security.KeyStore mAndroidKeyStore; 68 private java.security.KeyStore mKeyStore; 1095 mAndroidKeyStore = android.security.KeyStore.getInstance(); in setUp() 1100 mKeyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in setUp() 1136 KeyStore.UID_SELF, NativeCrypto.EVP_PKEY_RSA, 1024, KeyStore.FLAG_ENCRYPTED, in testKeyStore_Aliases_Encrypted_Success() 1142 KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED)); in testKeyStore_Aliases_Encrypted_Success() 1165 KeyStore.UID_SELF, NativeCrypto.EVP_PKEY_RSA, 1024, KeyStore.FLAG_ENCRYPTED, in testKeyStore_ContainsAliases_PrivateAndCA_Encrypted_Success() [all …]
|
D | KeyPairGeneratorSpecTest.java | 87 assertEquals("encryption flag should be on", KeyStore.FLAG_ENCRYPTED, spec.getFlags()); in testBuilder_Success()
|
D | AndroidKeyPairGeneratorTest.java | 43 private android.security.KeyStore mAndroidKeyStore; 69 mAndroidKeyStore = android.security.KeyStore.getInstance(); in setUp()
|
/frameworks/base/keystore/java/android/security/ |
D | KeyStoreParameter.java | 22 import java.security.KeyStore.ProtectionParameter; 63 return (mFlags & KeyStore.FLAG_ENCRYPTED) != 0; in isEncryptionRequired() 108 mFlags |= KeyStore.FLAG_ENCRYPTED; in setEncryptionRequired() 110 mFlags &= ~KeyStore.FLAG_ENCRYPTED; in setEncryptionRequired()
|
D | AndroidKeyPairGenerator.java | 56 private android.security.KeyStore mKeyStore; 82 if (((mSpec.getFlags() & KeyStore.FLAG_ENCRYPTED) != 0) in generateKeyPair() 83 && (mKeyStore.state() != KeyStore.State.UNLOCKED)) { in generateKeyPair() 93 final int keyType = KeyStore.getKeyTypeForAlgorithm(mSpec.getKeyType()); in generateKeyPair() 97 if (!mKeyStore.generate(privateKeyAlias, KeyStore.UID_SELF, keyType, in generateKeyPair() 147 if (!mKeyStore.put(Credentials.USER_CERTIFICATE + alias, certBytes, KeyStore.UID_SELF, in generateKeyPair() 206 mKeyStore = android.security.KeyStore.getInstance(); in initialize()
|
D | AndroidKeyStore.java | 30 import java.security.KeyStore.Entry; 31 import java.security.KeyStore.PrivateKeyEntry; 32 import java.security.KeyStore.ProtectionParameter; 33 import java.security.KeyStore; 75 private android.security.KeyStore mKeyStore; 328 android.security.KeyStore.UID_SELF, flags)) { in setPrivateKeyEntry() 332 android.security.KeyStore.UID_SELF, flags)) { in setPrivateKeyEntry() 337 android.security.KeyStore.UID_SELF, flags)) { in setPrivateKeyEntry() 368 android.security.KeyStore.UID_SELF, android.security.KeyStore.FLAG_NONE)) { in engineSetCertificateEntry() 527 mKeyStore = android.security.KeyStore.getInstance(); in engineLoad() [all …]
|
D | KeyPairGeneratorSpec.java | 148 final int keyTypeInt = KeyStore.getKeyTypeForAlgorithm(keyType); in KeyPairGeneratorSpec() 302 return (mFlags & KeyStore.FLAG_ENCRYPTED) != 0; in isEncryptionRequired() 381 KeyStore.getKeyTypeForAlgorithm(keyType); in setKeyType() 471 mFlags |= KeyStore.FLAG_ENCRYPTED; in setEncryptionRequired()
|
D | KeyStore.java | 32 public class KeyStore { class 61 private KeyStore(IKeystoreService binder) { in KeyStore() method in KeyStore 65 public static KeyStore getInstance() { in getInstance() 68 return new KeyStore(keystore); in getInstance()
|
D | Credentials.java | 216 static boolean deleteAllTypesForAlias(KeyStore keystore, String alias) { in deleteAllTypesForAlias() 230 static boolean deleteCertificateTypesForAlias(KeyStore keystore, String alias) { in deleteCertificateTypesForAlias()
|
D | KeyChain.java | 397 return KeyStore.getInstance().isHardwareBacked(algorithm); in isBoundKeyAlgorithm()
|
/frameworks/base/core/tests/coretests/src/android/net/http/ |
D | X509TrustManagerExtensionsTest.java | 19 import java.security.KeyStore; 53 String defaultType = KeyStore.getDefaultType(); in testGoodCast() 54 TrustManagerImpl tmi = new TrustManagerImpl(KeyStore.getInstance(defaultType)); in testGoodCast() 61 String defaultKeystoreType = KeyStore.getDefaultType(); in testNormalUseCase() 62 tmf.init(KeyStore.getInstance(defaultKeystoreType)); in testNormalUseCase()
|
/frameworks/base/docs/html/training/articles/ |
D | keystore.jd | 61 To use this feature, you use the standard {@link java.security.KeyStore} 66 java.security.KeyStore} type for use with the {@link 67 java.security.KeyStore#getInstance(String) KeyStore.getInstance(type)} 87 all the standard {@link java.security.KeyStore} APIs.</p> 92 java.security.KeyStore#aliases()} method:</p> 99 java.security.KeyStore.Entry} from the keystore and using the
|
D | security-ssl.jd | 174 an {@link java.io.InputStream}, uses it to create a {@link java.security.KeyStore}, 178 and—by creating one from a {@link java.security.KeyStore} with one or more CAs—those 205 // Create a KeyStore containing our trusted CAs 206 String keyStoreType = KeyStore.getDefaultType(); 207 KeyStore keyStore = KeyStore.getInstance(keyStoreType); 211 // Create a TrustManager that trusts the CAs in our KeyStore
|
D | security-tips.jd | 85 application. For example, a key can be placed in a {@link java.security.KeyStore} 486 {@link java.security.KeyStore} for storage.</p> 517 {@link java.security.KeyStore} that
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 44 import android.security.KeyStore; 105 final KeyStore ks = KeyStore.getInstance(); 270 final KeyStore ks = KeyStore.getInstance(); in maybeUpdateKeystore() 399 final KeyStore ks = KeyStore.getInstance(); in removeUser()
|
D | ConnectivityService.java | 90 import android.security.KeyStore; 200 private KeyStore mKeyStore; 636 mKeyStore = KeyStore.getInstance(); in ConnectivityService()
|
/frameworks/base/core/java/android/net/http/ |
D | CertificateChainValidator.java | 28 import java.security.KeyStore; 82 tmf.init((KeyStore) null); in CertificateChainValidator() 177 tmf.init((KeyStore) null); in handleTrustStorageUpdate()
|
/frameworks/base/tests/CoreTests/android/core/ |
D | SSLSocketTest.java | 35 import java.security.KeyStore; 322 KeyStore ks = KeyStore.getInstance("BKS"); in testDefaultAlgorithms() 328 assertEquals("BKS", KeyStore.getDefaultType()); in testDefaultAlgorithms() 771 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); in getKeyManagers()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | LockdownVpnTracker.java | 37 import android.security.KeyStore; 88 return KeyStore.getInstance().contains(Credentials.LOCKDOWN_VPN); in isEnabled() 168 mVpn.startLegacyVpnPrivileged(mProfile, KeyStore.getInstance(), egressProp); in handleStateChangedLocked()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 71 import android.security.KeyStore; 854 public void startLegacyVpn(VpnProfile profile, KeyStore keyStore, LinkProperties egress) { in startLegacyVpn() 870 public void startLegacyVpnPrivileged(VpnProfile profile, KeyStore keyStore, in startLegacyVpnPrivileged()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 50 import android.security.KeyStore; 452 private final KeyStore mKeyStore = KeyStore.getInstance(); 2835 if (mKeyStore.state() != KeyStore.State.UNLOCKED) { in addOrUpdateNetworkNative() 4116 KeyStore.FLAG_NONE); in installKeys() 4124 KeyStore.FLAG_ENCRYPTED); in installKeys() 4168 return mKeyStore.put(name, certData, Process.WIFI_UID, KeyStore.FLAG_NONE); in putCertInKeyStore()
|
/frameworks/base/docs/html/about/versions/ |
D | android-4.3.jd | 96 <li><a href="#KeyStore">Android key store for app-private keys</a></li> 1077 <h3 id="KeyStore">Android key store for app-private keys</h3> 1079 <p>Android now offers a custom Java Security Provider in the {@link java.security.KeyStore} 1082 {@code "AndroidKeyStore"} to {@link java.security.KeyStore#getInstance(String) 1083 KeyStore.getInstance()}.</p>
|
/frameworks/base/api/ |
D | system-current.txt | 28492 public final class KeyStoreParameter implements java.security.KeyStore.ProtectionParameter { 47104 public class KeyStore { 47105 ctor protected KeyStore(java.security.KeyStoreSpi, java.security.Provider, java.lang.String); 47109 …tryInstanceOf(java.lang.String, java.lang.Class<? extends java.security.KeyStore.Entry>) throws ja… 47115 …method public final java.security.KeyStore.Entry getEntry(java.lang.String, java.security.KeyStore… 47116 …method public static java.security.KeyStore getInstance(java.lang.String) throws java.security.Key… 47117 …method public static java.security.KeyStore getInstance(java.lang.String, java.lang.String) throws… 47118 …method public static java.security.KeyStore getInstance(java.lang.String, java.security.Provider) … 47125 …method public final void load(java.security.KeyStore.LoadStoreParameter) throws java.security.cert… 47127 …blic final void setEntry(java.lang.String, java.security.KeyStore.Entry, java.security.KeyStore.Pr… [all …]
|
D | current.txt | 26900 public final class KeyStoreParameter implements java.security.KeyStore.ProtectionParameter { 44575 public class KeyStore { 44576 ctor protected KeyStore(java.security.KeyStoreSpi, java.security.Provider, java.lang.String); 44580 …tryInstanceOf(java.lang.String, java.lang.Class<? extends java.security.KeyStore.Entry>) throws ja… 44586 …method public final java.security.KeyStore.Entry getEntry(java.lang.String, java.security.KeyStore… 44587 …method public static java.security.KeyStore getInstance(java.lang.String) throws java.security.Key… 44588 …method public static java.security.KeyStore getInstance(java.lang.String, java.lang.String) throws… 44589 …method public static java.security.KeyStore getInstance(java.lang.String, java.security.Provider) … 44596 …method public final void load(java.security.KeyStore.LoadStoreParameter) throws java.security.cert… 44598 …blic final void setEntry(java.lang.String, java.security.KeyStore.Entry, java.security.KeyStore.Pr… [all …]
|