Home
last modified time | relevance | path

Searched refs:PrivateKey (Results 1 – 25 of 65) sorted by relevance

123

/libcore/support/src/test/java/libcore/javax/net/ssl/
DRandomPrivateKeyX509ExtendedKeyManager.java23 import java.security.PrivateKey;
38 private final Map<String, PrivateKey> cachedKeys = new HashMap<String, PrivateKey>();
45 public PrivateKey getPrivateKey(String alias) { in getPrivateKey()
46 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey()
51 PrivateKey result; in getPrivateKey()
/libcore/ojluni/src/main/java/java/security/
DKeyPair.java45 private PrivateKey privateKey;
59 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { in KeyPair()
78 public PrivateKey getPrivate() { in getPrivate()
DSigner.java57 private PrivateKey privateKey;
108 public PrivateKey getPrivateKey() { in getPrivateKey()
136 PrivateKey priv = pair.getPrivate(); in setKeyPair()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKSPrivateKeyEntryTest.java26 import java.security.PrivateKey;
45 private PrivateKey testPrivateKey;
56 testPrivateKey = (diffKeys ? (PrivateKey)new tmpPrivateKey() : in createParams()
57 (PrivateKey)new tmpPrivateKey(testChain[0].getPublicKey().getAlgorithm())); in createParams()
67 PrivateKey pk = null; in testPrivateKeyEntry01()
83 PrivateKey pk = new tmpPrivateKey(); in testPrivateKeyEntry02()
233 private static class tmpPrivateKey implements PrivateKey {
DKeyPairTest.java26 import java.security.PrivateKey;
52 static PrivateKey getPrivate() { in getPrivate()
53 return new PrivateKey() { in getPrivate()
109 PrivateKey pk = TestKeyPair.getPrivate();
DSignatureSpiTest.java10 import java.security.PrivateKey;
101 protected void engineInitSign(PrivateKey privateKey) in testEngineGetParameters()
156 public void engineInitSign(PrivateKey privateKey) { in engineInitSign()
190 public void engineInitSign(PrivateKey privateKey) { in engineInitSign()
231 protected void engineInitSign(PrivateKey privateKey) in engineInitSign()
273 protected void engineInitSign(PrivateKey privateKey, SecureRandom random) in engineInitSign()
342 signature.initSign(new PrivateKey() { in testEngineSign_BII()
372 signature.initSign(new PrivateKey() { in testEngineUpdate_ByteBuffer()
DPrivateKeyTest.java25 import java.security.PrivateKey;
44 public class checkPrivateKey implements PrivateKey {
DKeyFactorySpiTest.java21 import java.security.PrivateKey;
56 protected PrivateKey engineGeneratePrivate(KeySpec keySpec){ in engineGeneratePrivate()
DKeyStorePrivateKeyEntryTest.java25 import java.security.PrivateKey;
69 PrivateKey privateKey = keyPair.getPrivate(); in testGetCertificateChain()
/libcore/ojluni/src/main/java/java/security/interfaces/
DECPrivateKey.java28 import java.security.PrivateKey;
41 public interface ECPrivateKey extends PrivateKey, ECKey {
/libcore/luni/src/test/java/libcore/java/security/
DMockPrivateKey.java19 import java.security.PrivateKey;
25 public class MockPrivateKey implements PrivateKey {
DMockPrivateKey2.java19 import java.security.PrivateKey;
25 public class MockPrivateKey2 implements PrivateKey {
DKeyAgreementHelper.java20 import java.security.PrivateKey;
37 private void test(PrivateKey encryptKey, PublicKey decryptKey) throws Exception { in test()
DMockSignatureSpi.java22 import java.security.PrivateKey;
67 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator3.java27 import java.security.PrivateKey;
46 PrivateKey priK = (new MyKeyPairGenerator1()).new PrivKey(); in generateKeyPair()
DPrivateKeyStub.java25 import java.security.PrivateKey;
31 public class PrivateKeyStub implements PrivateKey {
DTestKeyPair.java27 import java.security.PrivateKey;
595 public PrivateKey getPrivate() throws in getPrivate()
DMySignature1.java26 import java.security.PrivateKey;
71 protected void engineInitSign(PrivateKey privateKey) in engineInitSign()
DMyKeyPairGenerator1.java29 import java.security.PrivateKey;
120 public class PrivKey implements PrivateKey {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509ExtendedKeyManagerTest.java22 import java.security.PrivateKey;
75 public PrivateKey getPrivateKey(String arg0) { in getPrivateKey()
172 public PrivateKey getPrivateKey(String alias) { in getPrivateKey()
/libcore/ojluni/src/main/java/javax/net/ssl/
DX509KeyManager.java28 import java.security.PrivateKey;
133 public PrivateKey getPrivateKey(String alias); in getPrivateKey()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java33 import java.security.PrivateKey;
52 public class PKCS8Key implements PrivateKey {
92 PrivateKey key; in parse()
115 public static PrivateKey parseKey (DerValue in) throws IOException in parseKey()
118 PrivateKey privKey; in parseKey()
168 static PrivateKey buildPKCS8Key (AlgorithmId algid, byte[] key) in buildPKCS8Key()
/libcore/luni/src/test/java/libcore/java/security/cert/
DFakeOidProvider.java5 import java.security.PrivateKey;
38 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign()
/libcore/ojluni/annotations/hiddenapi/sun/security/pkcs/
DPKCS8Key.java33 public class PKCS8Key implements java.security.PrivateKey {
50 public static java.security.PrivateKey parseKey(sun.security.util.DerValue in) in parseKey()
59 static java.security.PrivateKey buildPKCS8Key(sun.security.x509.AlgorithmId algid, byte[] key) in buildPKCS8Key()
/libcore/ojluni/annotations/hiddenapi/java/security/
DSignature.java88 public final void initSign(java.security.PrivateKey privateKey) in initSign()
94 java.security.PrivateKey privateKey, java.security.SecureRandom random) in initSign()
211 protected void engineInitSign(java.security.PrivateKey privateKey) in engineInitSign()
217 java.security.PrivateKey privateKey, java.security.SecureRandom random) in engineInitSign()
304 protected void engineInitSign(java.security.PrivateKey privateKey) in engineInitSign()
310 java.security.PrivateKey privateKey, java.security.SecureRandom sr) in engineInitSign()

123