Home
last modified time | relevance | path

Searched refs:getPrivateKey (Results 1 – 25 of 68) sorted by relevance

123

/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DTestKeyStore.java223 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
231 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
237 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
244 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
254 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
261 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts()
267 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
279 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts()
577 caKey = signer.getPrivateKey(); in createKeys()
636 privateKey = privateEntry.getPrivateKey(); in createKeys()
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DTestKeyStore.java221 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
229 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
235 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
242 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
252 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
259 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts()
265 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
277 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts()
574 caKey = signer.getPrivateKey(); in createKeys()
633 privateKey = privateEntry.getPrivateKey(); in createKeys()
[all …]
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java172 PrivateKeyEntry pke = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509TrustManager()
232 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_intermediate()
271 KeyStore.PrivateKeyEntry pke = getTestKeyStore().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_keyOnly()
272 ks.setKeyEntry("key", pke.getPrivateKey(), "pw".toCharArray(), pke.getCertificateChain()); in test_TrustManagerFactory_keyOnly()
313 .signer(intermediateCa.getPrivateKey("RSA", "RSA")) in test_TrustManagerFactory_extendedKeyUsage()
318 PrivateKeyEntry privateKeyEntry = leaf.getPrivateKey(algorithm, algorithm); in test_TrustManagerFactory_extendedKeyUsage()
DKeyManagerFactoryTest.java267 assertNull(keyType, km.getPrivateKey(alias)); in test_X509KeyManager_alias()
272 PrivateKey privateKey = km.getPrivateKey(alias); in test_X509KeyManager_alias()
281 PrivateKeyEntry privateKeyEntry = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509KeyManager_alias()
285 assertEquals(keyType, privateKeyEntry.getPrivateKey(), privateKey); in test_X509KeyManager_alias()
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java176 PrivateKeyEntry pke = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509TrustManager()
236 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_intermediate()
275 KeyStore.PrivateKeyEntry pke = getTestKeyStore().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_keyOnly()
276 ks.setKeyEntry("key", pke.getPrivateKey(), "pw".toCharArray(), pke.getCertificateChain()); in test_TrustManagerFactory_keyOnly()
317 .signer(intermediateCa.getPrivateKey("RSA", "RSA")) in test_TrustManagerFactory_extendedKeyUsage()
322 PrivateKeyEntry privateKeyEntry = leaf.getPrivateKey(algorithm, algorithm); in test_TrustManagerFactory_extendedKeyUsage()
DKeyManagerFactoryTest.java271 assertNull(keyType, km.getPrivateKey(alias)); in test_X509KeyManager_alias()
276 PrivateKey privateKey = km.getPrivateKey(alias); in test_X509KeyManager_alias()
285 PrivateKeyEntry privateKeyEntry = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509KeyManager_alias()
289 assertEquals(keyType, privateKeyEntry.getPrivateKey(), privateKey); in test_X509KeyManager_alias()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java113 KAT_PRIVATE_KEY1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8);
115 KAT_PRIVATE_KEY2 = getPrivateKey(KAT_PRIVATE_KEY2_PKCS8);
134 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer()
138 getPrivateKey(KAT_PRIVATE_KEY2_PKCS8, keyFactoryProvider2); in testKnownAnswer()
463 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey() method in ECDHKeyAgreementTest
475 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey() method in ECDHKeyAgreementTest
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java115 KAT_PRIVATE_KEY1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8);
117 KAT_PRIVATE_KEY2 = getPrivateKey(KAT_PRIVATE_KEY2_PKCS8);
136 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer()
140 getPrivateKey(KAT_PRIVATE_KEY2_PKCS8, keyFactoryProvider2); in testKnownAnswer()
465 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey() method in ECDHKeyAgreementTest
477 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey() method in ECDHKeyAgreementTest
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DForwardingX509ExtendedKeyManager.java63 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in ForwardingX509ExtendedKeyManager
64 return delegate.getPrivateKey(alias); in getPrivateKey()
DRandomPrivateKeyX509ExtendedKeyManager.java44 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in RandomPrivateKeyX509ExtendedKeyManager
45 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey()
DTestKeyManager.java173 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in TestKeyManager
177 PrivateKey pk = keyManager.getPrivateKey(alias); in getPrivateKey()
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DForwardingX509ExtendedKeyManager.java61 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in ForwardingX509ExtendedKeyManager
62 return delegate.getPrivateKey(alias); in getPrivateKey()
DRandomPrivateKeyX509ExtendedKeyManager.java42 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in RandomPrivateKeyX509ExtendedKeyManager
43 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey()
DTestKeyManager.java171 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in TestKeyManager
175 PrivateKey pk = keyManager.getPrivateKey(alias); in getPrivateKey()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECPrivateKey.java175 return getPrivateKey(); in getS()
178 private BigInteger getPrivateKey() { in getPrivateKey() method in OpenSSLECPrivateKey
203 if (!getPrivateKey().equals(other.getS())) { in equals()
DOpenSSLKey.java295 PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey() method in OpenSSLKey
306 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey() method in OpenSSLKey
322 return key.getPrivateKey(); in getPrivateKey()
DKeyManagerImpl.java126 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyManagerImpl
131 return hash.get(alias).getPrivateKey(); in getPrivateKey()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECPrivateKey.java176 return getPrivateKey(); in getS()
179 private BigInteger getPrivateKey() { in getPrivateKey() method in OpenSSLECPrivateKey
204 if (!getPrivateKey().equals(other.getS())) { in equals()
DOpenSSLKey.java300 PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey() method in OpenSSLKey
311 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey() method in OpenSSLKey
327 return key.getPrivateKey(); in getPrivateKey()
DKeyManagerImpl.java127 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyManagerImpl
132 return hash.get(alias).getPrivateKey(); in getPrivateKey()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/
DTrustManagerImplTest.java59 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testLearnIntermediate()
94 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testDuplicateInChain()
110 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testGetFullChain()
134 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServerHostname().getPrivateKey("RSA", "RSA"); in testHttpsEndpointIdentification()
/external/conscrypt/common/src/test/java/org/conscrypt/
DTrustManagerImplTest.java55 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testLearnIntermediate()
90 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testDuplicateInChain()
106 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testGetFullChain()
130 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServerHostname().getPrivateKey("RSA", "RSA"); in testHttpsEndpointIdentification()
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DOpenJdkEngineFactory.java231 .trustManager((X509Certificate[]) server.getPrivateKey("RSA", "RSA") in newNettyClientContext()
245 PrivateKeyEntry server = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in newNettyServerContext()
248 .forServer(server.getPrivateKey(), in newNettyServerContext()
/external/grpc-grpc-java/auth/src/main/java/io/grpc/auth/
DGoogleAuthLibraryCallCredentials.java262 private final Method getPrivateKey; field in GoogleAuthLibraryCallCredentials.JwtHelper
271 getPrivateKey = serviceAccountClass.getMethod("getPrivateKey"); in JwtHelper()
295 getPrivateKey.invoke(creds), in tryServiceAccountToJwt()
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DOpenSSLKeyTest.java65 OpenSSLRSAPrivateKey privateKey = (OpenSSLRSAPrivateKey)key.getPrivateKey(); in test_fromPrivateKeyPemInputStream()

123