/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);
|
/libcore/luni/src/main/java/java/security/ |
Signer.java | 70 public PrivateKey getPrivateKey() {
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
KeyManagerImplTest.java | 57 assertNull(km.getPrivateKey("alias")); 80 assertTrue(km.getPrivateKey("ssl_test_store") != null);
|
DigitalSignatureTest.java | 44 key = entry.getPrivateKey();
|
/libcore/luni/src/test/java/tests/api/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 | 89 private static PrivateKeyEntry getPrivateKey() { 91 PRIVATE_KEY = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); 98 PRIVATE_KEY_2 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA"); 232 getPrivateKey().getPrivateKey(), 234 getPrivateKey().getCertificateChain()); 238 getPrivateKey().getCertificate()); 273 ks.setKeyEntry(alias, privateKey.getPrivateKey(), null, privateKey.getCertificateChain()); 279 setPrivateKey(ks, alias, getPrivateKey()); 286 privateKey.getPrivateKey(), [all...] |
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
OpenSSLECPrivateKey.java | 101 return getPrivateKey(); 104 private BigInteger getPrivateKey() { 129 if (!getPrivateKey().equals(other.getS())) {
|
OpenSSLKey.java | 103 public PrivateKey getPrivateKey() throws NoSuchAlgorithmException { 116 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) 132 return key.getPrivateKey();
|
OpenSSLEngine.java | 74 return pkey.getPrivateKey();
|
/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);
|
KeyManagerFactoryTest.java | 225 assertNull(keyType, km.getPrivateKey(alias)); 231 PrivateKey privateKey = km.getPrivateKey(alias); 254 PrivateKeyEntry privateKeyEntry = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); 260 privateKeyEntry.getPrivateKey(), privateKey);
|
/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 | 96 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String) 98 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);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLUtils.java | 120 @Override public abstract PrivateKey getPrivateKey(String alias); 172 public PrivateKey getPrivateKey(String alias) { 216 privateKey = KeyChain.getPrivateKey(context, alias); 266 public PrivateKey getPrivateKey(String alias) {
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
ECDHKeyAgreementTest.java | 82 KAT_PRIVATE_KEY1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8); 84 KAT_PRIVATE_KEY2 = getPrivateKey(KAT_PRIVATE_KEY2_PKCS8); 97 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); 101 getPrivateKey(KAT_PRIVATE_KEY2_PKCS8, keyFactoryProvider2); 392 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) 404 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
KeyFactory.java | 30 PrivateKey key = BouncyCastleProvider.getPrivateKey(info);
|
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/ |
TrustManagerImplTest.java | 72 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); 105 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); 119 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); 140 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
|