/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");
|
KeyStoreTest.java | 99 private static PrivateKeyEntry getPrivateKey() { 100 return getPrivateKey("RSA"); 103 private static PrivateKeyEntry getPrivateKey(String keyType) { 116 entry = sTestKeyStore.getPrivateKey("RSA", "RSA"); 118 entry = sTestKeyStore.getPrivateKey("DH", "RSA"); 120 entry = sTestKeyStore.getPrivateKey("DSA", "DSA"); 122 entry = sTestKeyStore.getPrivateKey("EC", "EC"); 133 sPrivateKey2 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA"); 268 getPrivateKey().getPrivateKey(), [all...] |
/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());
|
CertPathValidatorTest.java | 76 PrivateKeyEntry serverEntry = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); 77 PrivateKeyEntry caEntry = TestKeyStore.getIntermediateCa().getPrivateKey("RSA", "RSA"); 78 PrivateKeyEntry rootCaEntry = TestKeyStore.getRootCa().getPrivateKey("RSA", "RSA"); 82 (X509Certificate) caEntry.getCertificate(), caEntry.getPrivateKey(), certStatus);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SignerTest.java | 82 assertNull(s.getPrivateKey()); 92 assertNull(s.getPrivateKey()); 108 assertNull(s.getPrivateKey()); 128 * verify Signer.getPrivateKey() returns null or private key 138 assertNull(s.getPrivateKey()); 141 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...] |
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
KeyManagementTest.java | 88 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); 100 assertEquals(KeyChain.getPrivateKey(getActivity(), alias).getAlgorithm(), "RSA"); 112 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); 126 assertEquals(KeyChain.getPrivateKey(getActivity(), grant).getAlgorithm(), "RSA"); 156 assertEquals(KeyChain.getPrivateKey(getActivity(), alias).getAlgorithm(), "RSA"); 171 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); 198 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); 214 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); 226 granted = (KeyChain.getPrivateKey(getActivity(), alias) != null); 232 private static PrivateKey getPrivateKey(final byte[] key, String type [all...] |
/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);
|
/external/conscrypt/src/test/java/org/conscrypt/ |
OpenSSLKeyTest.java | 61 OpenSSLRSAPrivateKey privateKey = (OpenSSLRSAPrivateKey)key.getPrivateKey();
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
X509KeyManager.java | 134 public PrivateKey getPrivateKey(String alias);
|
/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/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/ojluni/src/main/java/java/security/ |
Signer.java | 108 public PrivateKey getPrivateKey() {
|
/libcore/support/src/test/java/tests/security/ |
KeyFactoryTest.java | 54 PrivateKeySpec privateKeySpec = factory.getKeySpec(DefaultKeys.getPrivateKey(algorithmName),
|
/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)
|