Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore2Test.java59 private static PrivateKey getPrivateKey() throws Exception { in getPrivateKey() method in KeyStore2Test
149 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); in creatCertificate()
305 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); in test_getCertificateAliasLjava_security_cert_Certificate()
341 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); in test_getCertificateChainLjava_lang_String()
388 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); in test_getKeyLjava_lang_String$C()
391 byte[] priB = getPrivateKey().getEncoded(); in test_getKeyLjava_lang_String$C()
393 assertEquals(getPrivateKey().getAlgorithm(), returnedKey.getAlgorithm()); in test_getKeyLjava_lang_String$C()
394 assertEquals(getPrivateKey().getFormat(), returnedKey.getFormat()); in test_getKeyLjava_lang_String$C()
431 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); in test_isCertificateEntryLjava_lang_String()
462 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert); in test_isKeyEntryLjava_lang_String()
[all …]
DSignerTest.java82 assertNull(s.getPrivateKey()); in testSigner()
92 assertNull(s.getPrivateKey()); in testSignerString()
108 assertNull(s.getPrivateKey()); in testSignerStringIdentityScope()
138 assertNull(s.getPrivateKey()); in testGetPrivateKey()
141 assertSame(privateKey, s.getPrivateKey()); in testGetPrivateKey()
DKSPrivateKeyEntryTest.java151 .getPrivateKey()); in testGetPrivateKey()
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertPathValidatorTest.java86 PrivateKeyEntry serverEntry = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in runOCSPStapledTest()
87 PrivateKeyEntry caEntry = TestKeyStore.getIntermediateCa().getPrivateKey("RSA", "RSA"); in runOCSPStapledTest()
88 PrivateKeyEntry rootCaEntry = TestKeyStore.getRootCa().getPrivateKey("RSA", "RSA"); in runOCSPStapledTest()
92 (X509Certificate) caEntry.getCertificate(), caEntry.getPrivateKey(), certStatus); in runOCSPStapledTest()
DPKIXParametersTest.java61 KeyStore.PrivateKeyEntry pke = server.getPrivateKey("RSA", "RSA"); in keyStoreConstructor()
69 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); in keyStoreConstructor()
76 keyOnly.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain()); in keyStoreConstructor()
DPKIXRevocationCheckerTest.java50 entity = server.getPrivateKey("RSA", "RSA"); in setUp()
51 issuer = intermediate.getPrivateKey("RSA", "RSA"); in setUp()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DForwardingX509ExtendedKeyManager.java73 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in ForwardingX509ExtendedKeyManager
74 return delegate.getPrivateKey(alias); in getPrivateKey()
DRandomPrivateKeyX509ExtendedKeyManager.java45 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in RandomPrivateKeyX509ExtendedKeyManager
46 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey()
DTestKeyManager.java166 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in TestKeyManager
170 PrivateKey pk = keyManager.getPrivateKey(alias); in getPrivateKey()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java217 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
225 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
231 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
241 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
248 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts()
254 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
266 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts()
554 caKey = signer.getPrivateKey(); in createKeys()
605 privateKey = privateEntry.getPrivateKey(); in createKeys()
819 public PrivateKeyEntry getPrivateKey(String keyAlgorithm, String signatureAlgorithm) { in getPrivateKey() method in TestKeyStore
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509ExtendedKeyManagerTest.java75 public PrivateKey getPrivateKey(String arg0) { in getPrivateKey() method in X509ExtendedKeyManagerTest.MockX509ExtendedKeyManager
172 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in MyX509ExtendedKeyManager
DX509KeyManagerTest.java735 assertNull("Not NULL for NULL parameter", manager.getPrivateKey(null)); in test_getPrivateKey()
736 … assertNull("Not NULL for serverAlias_00 parameter", manager.getPrivateKey("serverAlias_00")); in test_getPrivateKey()
737 … assertNull("Not NULL for clientAlias_02 parameter", manager.getPrivateKey("clientAlias_02")); in test_getPrivateKey()
/libcore/ojluni/src/main/java/javax/net/ssl/
DX509KeyManager.java133 public PrivateKey getPrivateKey(String alias); in getPrivateKey() method
/libcore/ojluni/src/main/java/java/security/
DSigner.java108 public PrivateKey getPrivateKey() { in getPrivateKey() method in Signer
DKeyStoreSpi.java538 ((KeyStore.PrivateKeyEntry)entry).getPrivateKey(), in engineSetEntry()
DKeyStore.java603 public PrivateKey getPrivateKey() { in getPrivateKey() method in KeyStore.PrivateKeyEntry
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertPathBuilderTestPKIX.java44 PrivateKeyEntry pke = clientAndCa.getPrivateKey("RSA", "RSA"); in getCertPathParameters()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java142 PrivateKey privateKey = entry.getPrivateKey(); in testKeyStoreCreate()
/libcore/ojluni/annotations/hiddenapi/java/security/
DKeyStore.java403 public java.security.PrivateKey getPrivateKey() { in getPrivateKey() method in KeyStore.PrivateKeyEntry
/libcore/api/
Dcurrent.txt7552 method public java.security.PrivateKey getPrivateKey();
7911 method @Deprecated public java.security.PrivateKey getPrivateKey();
18157 method public java.security.PrivateKey getPrivateKey(String);