Home
last modified time | relevance | path

Searched refs:PrivateKeyEntry (Results 1 – 15 of 15) 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/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java27 import java.security.KeyStore.PrivateKeyEntry;
122 PrivateKeyEntry privateKeyEntry = new PrivateKeyEntry(keyPair in testKeyStoreCreate()
139 PrivateKeyEntry entry = (PrivateKeyEntry) keyStore.getEntry( in testKeyStoreCreate()
/libcore/ojluni/src/main/java/java/security/
DKeyStoreSpi.java485 return new KeyStore.PrivateKeyEntry((PrivateKey)key, chain); in engineGetEntry()
535 } else if (entry instanceof KeyStore.PrivateKeyEntry) { in engineSetEntry()
538 ((KeyStore.PrivateKeyEntry)entry).getPrivateKey(), in engineSetEntry()
540 ((KeyStore.PrivateKeyEntry)entry).getCertificateChain()); in engineSetEntry()
577 if (entryClass == KeyStore.PrivateKeyEntry.class) { in engineEntryInstanceOf()
DKeyStore.java495 public static final class PrivateKeyEntry implements Entry { class in KeyStore
525 public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) { in PrivateKeyEntry() method in KeyStore.PrivateKeyEntry
555 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;
86 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()
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.txt7547 public static final class KeyStore.PrivateKeyEntry implements java.security.KeyStore.Entry {
7548 … ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[]);
7549 …ctor public KeyStore.PrivateKeyEntry(java.security.PrivateKey, java.security.cert.Certificate[], j…