/cts/tests/tests/keystore/src/android/keystore/cts/ |
KeyChainTest.java | 37 KeyChain.getPrivateKey(null, null); 39 + "KeyChain.getPrivateKey(Context, String)"); 47 KeyChain.getPrivateKey(getContext(), null); 49 + "KeyChain.getPrivateKey(Context, String)."); 57 KeyChain.getPrivateKey(null, ""); 59 + "KeyChain.getPrivateKey(Context, String)."); 70 KeyChain.getPrivateKey(getContext(), ""); 72 + "KeyChain.getPrivateKey(Context, String) on main thread");
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
SignerTest.java | 72 assertNull(s.getPrivateKey()); 82 assertNull(s.getPrivateKey()); 93 assertNull(s.getPrivateKey()); 97 * verify Signer.getPrivateKey() returns null or private key 107 assertNull(s.getPrivateKey()); 110 assertSame(privateKey, s.getPrivateKey());
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
PKIXParametersTest.java | 29 KeyStore.PrivateKeyEntry pke = server.getPrivateKey("RSA", "RSA"); 37 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); 44 keyOnly.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain());
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SignerTest.java | 81 assertNull(s.getPrivateKey()); 91 assertNull(s.getPrivateKey()); 106 assertNull(s.getPrivateKey()); 123 * verify Signer.getPrivateKey() returns null or private key 133 assertNull(s.getPrivateKey()); 136 assertSame(privateKey, s.getPrivateKey());
|
KeyStore2Test.java | 59 private static PrivateKey getPrivateKey() throws Exception { 149 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); 305 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); 341 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); 388 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); 391 byte[] priB = getPrivateKey().getEncoded(); 393 assertEquals(getPrivateKey().getAlgorithm(), returnedKey.getAlgorithm()); 394 assertEquals(getPrivateKey().getFormat(), returnedKey.getFormat()); 431 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); 462 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert) [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
X509KeyManager.java | 112 public PrivateKey getPrivateKey(String alias);
|
/external/jetty/src/java/org/eclipse/jetty/util/ssl/ |
AliasedX509KeyManager.java | 101 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String) 103 public PrivateKey getPrivateKey(String alias) 105 return _keyManager.getPrivateKey(alias);
|
AliasedX509ExtendedKeyManager.java | 103 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String) 105 public PrivateKey getPrivateKey(String alias) 107 return _keyManager.getPrivateKey(alias);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
ForwardingX509ExtendedKeyManager.java | 73 public PrivateKey getPrivateKey(String alias) { 74 return delegate.getPrivateKey(alias);
|
RandomPrivateKeyX509ExtendedKeyManager.java | 45 public PrivateKey getPrivateKey(String alias) { 46 PrivateKey originalPrivateKey = super.getPrivateKey(alias);
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
KeyManagementTest.java | 84 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); 89 final PrivateKey retrievedKey = KeyChain.getPrivateKey(getActivity(), alias); 96 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); 113 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); 122 private static PrivateKey getPrivateKey(final byte[] key, String type)
|
/libcore/luni/src/main/java/java/security/ |
Signer.java | 69 public PrivateKey getPrivateKey() {
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
KeyManagerImplTest.java | 56 assertNull(km.getPrivateKey("alias")); 79 assertTrue(km.getPrivateKey("ssl_test_store") != null);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
X509ExtendedKeyManagerTest.java | 73 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String) 75 public PrivateKey getPrivateKey(String arg0) { 170 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String) 172 public PrivateKey getPrivateKey(String alias) {
|
/libcore/luni/src/test/java/libcore/java/security/ |
KeyStoreTest.java | 96 private static PrivateKeyEntry getPrivateKey() { 97 return getPrivateKey("RSA"); 100 private static PrivateKeyEntry getPrivateKey(String keyType) { 113 entry = sTestKeyStore.getPrivateKey("RSA", "RSA"); 115 entry = sTestKeyStore.getPrivateKey("DH", "RSA"); 117 entry = sTestKeyStore.getPrivateKey("DSA", "DSA"); 119 entry = sTestKeyStore.getPrivateKey("EC", "EC"); 130 sPrivateKey2 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA"); 265 getPrivateKey().getPrivateKey(), [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
TrustManagerFactoryTest.java | 155 PrivateKeyEntry pke = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); 213 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); 251 KeyStore.PrivateKeyEntry pke = getTestKeyStore().getPrivateKey("RSA", "RSA"); 252 ks.setKeyEntry("key", pke.getPrivateKey(), "pw".toCharArray(), pke.getCertificateChain()); 289 .signer(intermediateCa.getPrivateKey("RSA", "RSA")) 294 PrivateKeyEntry privateKeyEntry = leaf.getPrivateKey(algorithm, algorithm);
|
X509KeyManagerTest.java | 54 .signer(ca.getPrivateKey(caKeyType, caKeyType))
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainTestActivity.java | 107 KeyChain.getPrivateKey(null, null); 118 KeyChain.getPrivateKey(this, null); 129 KeyChain.getPrivateKey(null, ""); 140 KeyChain.getPrivateKey(this, ""); 274 @Override public PrivateKey getPrivateKey(String alias) { 276 log("KeyChainKeyManager getPrivateKey..."); 277 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this,
|
KeyChainServiceTest.java | 160 PrivateKeyEntry pke1 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA"); 171 PrivateKeyEntry pke2 = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); 176 pke1.getPrivateKey().getEncoded())); 184 pke2.getPrivateKey().getEncoded()));
|
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
KeyChainDemoActivity.java | 204 final PrivateKey privateKey = getPrivateKey(alias); 273 private PrivateKey getPrivateKey(String alias) { 275 return KeyChain.getPrivateKey(this, alias); 291 && getPrivateKey(getAlias()) != null;
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
X509ExtendedKeyManagerTest.java | 95 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String) 97 public PrivateKey getPrivateKey(String alias) {
|
/libcore/support/src/test/java/tests/security/ |
KeyFactoryTest.java | 54 PrivateKeySpec privateKeySpec = factory.getKeySpec(DefaultKeys.getPrivateKey(algorithmName),
|
/packages/apps/Browser/src/com/android/browser/ |
KeyChainLookup.java | 40 privateKey = KeyChain.getPrivateKey(mContext, mAlias);
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
ECDHKeyAgreementTest.java | 84 KAT_PRIVATE_KEY1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8); 86 KAT_PRIVATE_KEY2 = getPrivateKey(KAT_PRIVATE_KEY2_PKCS8); 99 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); 103 getPrivateKey(KAT_PRIVATE_KEY2_PKCS8, keyFactoryProvider2); 407 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) 419 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey)
|
/development/samples/Vault/src/com/example/android/vault/ |
SecretKeyWrapper.java | 68 mPair = new KeyPair(entry.getCertificate().getPublicKey(), entry.getPrivateKey());
|