Home
last modified time | relevance | path

Searched refs:PrivateKeyEntry (Results 1 – 18 of 18) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSPrivateKeyEntryTest.java69 new KeyStore.PrivateKeyEntry(pk, certs); in testPrivateKeyEntry01()
85 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02()
91 new KeyStore.PrivateKeyEntry(pk, chain); in testPrivateKeyEntry02()
105 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain); in testPrivateKeyEntry03()
120 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain); in testPrivateKeyEntry04()
136 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain, null /* attributes */); in testPrivateKeyEntry05()
148 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry( in testGetPrivateKey()
160 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry( in testGetCertificateChain()
176 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry( in testGetCertificate()
203 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry( in testGetAttributes()
[all …]
DKeyStore2Test.java634 KeyStore.PrivateKeyEntry pkEntry = new KeyStore.PrivateKeyEntry(getPrivateKey(), chain); in test_deleteEntry()
672 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry(getPrivateKey(), in test_getCreationDate()
674 KeyStore.PrivateKeyEntry pke1 = new KeyStore.PrivateKeyEntry( in test_getCreationDate()
768 KeyStore.PrivateKeyEntry pke1 = new KeyStore.PrivateKeyEntry(getPrivateKey(), chain); in test_getEntry()
769 KeyStore.PrivateKeyEntry pke2 = new KeyStore.PrivateKeyEntry(privateKey1, chain); in test_getEntry()
775 KeyStore.PrivateKeyEntry pkeActual1 = (KeyStore.PrivateKeyEntry) keyTest.getEntry("alias1", in test_getEntry()
777 KeyStore.PrivateKeyEntry pkeActual2 = (KeyStore.PrivateKeyEntry) keyTest.getEntry("alias2", in test_getEntry()
783 assertTrue(keyTest.entryInstanceOf("alias1", KeyStore.PrivateKeyEntry.class)); in test_getEntry()
793 assertTrue(keyTest.entryInstanceOf("alias2", KeyStore.PrivateKeyEntry.class)); in test_getEntry()
816 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry(getPrivateKey(), chain); in test_setEntry()
[all …]
DKeyStorePrivateKeyEntryTest.java73 KeyStore.PrivateKeyEntry privateKeyEntry = new KeyStore.PrivateKeyEntry( in testGetCertificateChain()
DKeyStoreSpiTest.java69 KeyStore.PrivateKeyEntry.class)); in test_engineEntryInstanceOf()
DKeyStoreTest.java268 KeyStore.PrivateKeyEntry.class)); in testEngineEntryInstanceOf()
/libcore/ojluni/src/test/java/security/KeyStore/
DDefaultEntryType.java146 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry in testPrivateKeyEntry()
154 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry in testPrivateKeyEntry()
163 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry in testPrivateKeyEntry()
174 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry in testPrivateKeyEntry()
184 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry in testPrivateKeyEntry()
195 KeyStore.PrivateKeyEntry pke = new KeyStore.PrivateKeyEntry in testPrivateKeyEntry()
DTestKeystoreBasic.java238 KeyStore.PrivateKeyEntry entry = in runTest()
239 new KeyStore.PrivateKeyEntry(privateKey, new Certificate[]{ cert }); in runTest()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java27 import java.security.KeyStore.PrivateKeyEntry;
132 PrivateKeyEntry privateKeyEntry = new PrivateKeyEntry(keyPair in createAndTest()
149 PrivateKeyEntry entry = (PrivateKeyEntry) keyStore.getEntry( in createAndTest()
DKeyStorePkcs7FormatTest.java28 import java.security.KeyStore.PrivateKeyEntry;
137 PrivateKeyEntry keyEntry = (PrivateKeyEntry) keystore.getEntry(alias, null); in keystoreIsReadableAndConsistent()
/libcore/ojluni/src/main/java/java/security/
DKeyStoreSpi.java514 return new KeyStore.PrivateKeyEntry((PrivateKey)key, chain); in engineGetEntry()
564 } else if (entry instanceof KeyStore.PrivateKeyEntry) { in engineSetEntry()
567 ((KeyStore.PrivateKeyEntry)entry).getPrivateKey(), in engineSetEntry()
569 ((KeyStore.PrivateKeyEntry)entry).getCertificateChain()); in engineSetEntry()
606 if (entryClass == KeyStore.PrivateKeyEntry.class) { in engineEntryInstanceOf()
DKeyStore.java512 public static final class PrivateKeyEntry implements Entry { class in KeyStore
542 public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) { in PrivateKeyEntry() method in KeyStore.PrivateKeyEntry
572 public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain, in PrivateKeyEntry() method in KeyStore.PrivateKeyEntry
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java29 import java.security.KeyStore.PrivateKeyEntry;
363 private PrivateKeyEntry privateEntry;
364 private PrivateKeyEntry signer;
421 public Builder privateEntry(PrivateKeyEntry privateEntry) { in privateEntry()
427 public Builder signer(PrivateKeyEntry signer) { in signer()
544 PrivateKeyEntry privateEntry, in createKeys()
545 PrivateKeyEntry signer) throws Exception { in createKeys()
819 public PrivateKeyEntry getPrivateKey(String keyAlgorithm, String signatureAlgorithm) { in getPrivateKey()
828 public static PrivateKeyEntry privateKey(KeyStore keyStore, char[] keyPassword, in privateKey()
831 PrivateKeyEntry found = null; in privateKey()
[all …]
/libcore/luni/src/test/java/libcore/java/security/cert/
DCertPathValidatorTest.java19 import java.security.KeyStore.PrivateKeyEntry;
88 PrivateKeyEntry serverEntry = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in runOCSPStapledTest()
89 PrivateKeyEntry caEntry = TestKeyStore.getIntermediateCa().getPrivateKey("RSA", "RSA"); in runOCSPStapledTest()
90 PrivateKeyEntry rootCaEntry = TestKeyStore.getRootCa().getPrivateKey("RSA", "RSA"); in runOCSPStapledTest()
DPKIXRevocationCheckerTest.java6 import java.security.KeyStore.PrivateKeyEntry;
33 PrivateKeyEntry entity;
35 PrivateKeyEntry issuer;
DPKIXParametersTest.java61 KeyStore.PrivateKeyEntry pke = server.getPrivateKey("RSA", "RSA"); in keyStoreConstructor()
/libcore/luni/src/test/java/tests/targets/security/cert/
DCertPathBuilderTestPKIX.java19 import java.security.KeyStore.PrivateKeyEntry;
44 PrivateKeyEntry pke = clientAndCa.getPrivateKey("RSA", "RSA"); in getCertPathParameters()
/libcore/ojluni/annotations/hiddenapi/java/security/
DKeyStore.java389 public static final class PrivateKeyEntry implements java.security.KeyStore.Entry { class in KeyStore
391 public PrivateKeyEntry( in PrivateKeyEntry() method in KeyStore.PrivateKeyEntry
396 public PrivateKeyEntry( in PrivateKeyEntry() method in KeyStore.PrivateKeyEntry
/libcore/api/
Dcurrent.txt8245 public static final class KeyStore.PrivateKeyEntry implements java.security.KeyStore.Entry {
8246 … ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[]);
8247 …ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[], j…