Home
last modified time | relevance | path

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

12

/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/
DTrustManagerFactoryTest.java169 PrivateKeyEntry pke = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509TrustManager()
229 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_intermediate()
268 KeyStore.PrivateKeyEntry pke = getTestKeyStore().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_keyOnly()
269 ks.setKeyEntry("key", pke.getPrivateKey(), "pw".toCharArray(), pke.getCertificateChain()); in test_TrustManagerFactory_keyOnly()
310 .signer(intermediateCa.getPrivateKey("RSA", "RSA")) in test_TrustManagerFactory_extendedKeyUsage()
315 PrivateKeyEntry privateKeyEntry = leaf.getPrivateKey(algorithm, algorithm); in test_TrustManagerFactory_extendedKeyUsage()
DKeyManagerFactoryTest.java233 assertNull(keyType, km.getPrivateKey(alias)); in test_X509KeyManager_alias()
239 PrivateKey privateKey = km.getPrivateKey(alias); in test_X509KeyManager_alias()
248 PrivateKeyEntry privateKeyEntry = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509KeyManager_alias()
252 assertEquals(keyType, privateKeyEntry.getPrivateKey(), privateKey); in test_X509KeyManager_alias()
DX509KeyManagerTest.java59 .signer(ca.getPrivateKey(caKeyType, caKeyType)) in test_ChooseClientAlias_KeyType()
/external/conscrypt/testing/src/main/java/libcore/java/security/
DTestKeyStore.java220 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
228 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
234 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
244 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
251 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts()
257 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
269 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts()
557 caKey = signer.getPrivateKey(); in createKeys()
616 privateKey = privateEntry.getPrivateKey(); in createKeys()
802 public PrivateKeyEntry getPrivateKey(String keyAlgorithm, String signatureAlgorithm) { in getPrivateKey() method in TestKeyStore
[all …]
/external/conscrypt/testing/src/main/java/libcore/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/benchmark-base/src/main/java/org/conscrypt/
DEngineType.java164 .trustManager((X509Certificate[]) server.getPrivateKey("RSA", "RSA") in newNettyClientContext()
174 PrivateKeyEntry server = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in newNettyServerContext()
177 .forServer(server.getPrivateKey(), in newNettyServerContext()
/external/conscrypt/platform/src/test/java/org/conscrypt/
DTrustManagerImplTest.java41 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testLearnIntermediate()
74 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testDuplicateInChain()
88 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testGetFullChain()
DCertPinManagerTest.java34 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in setUp()
DTrustedCertificateStoreTest.java247 PRIVATE = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in initCerts()
646 PrivateKey privateKey = getPrivate().getPrivateKey(); in testIsTrustAnchorWithReissuedgetCa()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECPrivateKey.java174 return getPrivateKey(); in getS()
177 private BigInteger getPrivateKey() { in getPrivateKey() method in OpenSSLECPrivateKey
202 if (!getPrivateKey().equals(other.getS())) { in equals()
DOpenSSLKey.java286 PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey() method in OpenSSLKey
297 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey() method in OpenSSLKey
313 return key.getPrivateKey(); in getPrivateKey()
DKeyManagerImpl.java128 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in KeyManagerImpl
133 return hash.get(alias).getPrivateKey(); in getPrivateKey()
DOpenSSLECKeyFactory.java68 return OpenSSLKey.getPrivateKey((PKCS8EncodedKeySpec) keySpec, in engineGeneratePrivate()
DOpenSSLRSAKeyFactory.java71 return OpenSSLKey.getPrivateKey((PKCS8EncodedKeySpec) keySpec, in engineGeneratePrivate()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DOpenSSLKeyTest.java61 OpenSSLRSAPrivateKey privateKey = (OpenSSLRSAPrivateKey)key.getPrivateKey(); in test_fromPrivateKeyPemInputStream()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DKeyFactory.java30 PrivateKey key = BouncyCastleProvider.getPrivateKey(info); in engineGeneratePrivate()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DPrivateKeyInfo.java115 public ASN1Primitive getPrivateKey() in getPrivateKey() method in PrivateKeyInfo
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseCipherSpi.java188 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); in engineUnwrap()
DECUtil.java264 … PrivateKey privateKey = BouncyCastleProvider.getPrivateKey(PrivateKeyInfo.getInstance(bytes)); in generatePrivateKeyParameter()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DBouncyCastleProvider.java345 public static PrivateKey getPrivateKey(PrivateKeyInfo privateKeyInfo) in getPrivateKey() method in BouncyCastleProvider
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEcdhTest.java112 public ECPrivateKey getPrivateKey() throws NoSuchAlgorithmException, InvalidKeySpecException { in getPrivateKey() method in EcdhTest.EcdhTestVector
852 ka.init(t.getPrivateKey()); in testVectors()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DCertInstallerHelper.java132 mUserKey = entry.getPrivateKey(); in installFrom()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DBaseWrapCipher.java368 PrivateKey privKey = BouncyCastleProvider.getPrivateKey(in); in engineUnwrap()

12