Home
last modified time | relevance | path

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

1234

/libcore/ojluni/src/main/java/javax/security/auth/x500/
DX500PrivateCredential.java28 import java.security.PrivateKey;
43 private PrivateKey key;
57 public X500PrivateCredential(X509Certificate cert, PrivateKey key) { in X500PrivateCredential()
76 public X500PrivateCredential(X509Certificate cert, PrivateKey key, in X500PrivateCredential()
100 public PrivateKey getPrivateKey() { in getPrivateKey()
/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/luni/src/main/java/android/crypto/hpke/
DHpkeSpi.java21 import java.security.PrivateKey;
66 @Nullable PrivateKey senderKey, in engineInitSender()
107 @Nullable PrivateKey senderKey, in engineInitSenderWithSeed()
142 @NonNull PrivateKey recipientKey, in engineInitRecipient()
/libcore/ojluni/src/main/java/java/security/
DKeyPair.java46 private PrivateKey privateKey;
60 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { in KeyPair()
79 public PrivateKey getPrivate() { in getPrivate()
DSigner.java59 private PrivateKey privateKey;
110 public PrivateKey getPrivateKey() { in getPrivateKey()
138 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 {
/libcore/luni/annotations/flagged_api/android/crypto/hpke/
DHpkeSpi.annotated.java22 import java.security.PrivateKey;
30 public void engineInitSender(PublicKey recipientKey, byte[] info, PrivateKey senderKey, byte[] psk,… in engineInitSender()
33 public void engineInitSenderWithSeed(PublicKey recipientKey, byte[] info, PrivateKey senderKey, byt… in engineInitSenderWithSeed()
36 public void engineInitRecipient(byte[] encapsulated, PrivateKey recipientKey, byte[] info, PublicKe… in engineInitRecipient()
/libcore/tools/go/certutil/
Dcertutil.go32 PrivateKey *ecdsa.PrivateKey member
41 func newKey() *ecdsa.PrivateKey {
67 PrivateKey: newKey(),
81 return &e.PrivateKey.PublicKey
104 ca.PrivateKey)
/libcore/luni/src/test/java/libcore/javax/security/auth/
DX500PrivateCredentialTest.java34 import java.security.PrivateKey;
49 PrivateKey key = createPrivateKey(); in testX500PrivateCredential_nullArgs()
58 PrivateKey key = createPrivateKey(); in testX500PrivateCredential_validArgs()
107 private static PrivateKey createPrivateKey() in createPrivateKey()
111 PrivateKey key = kpg.generateKeyPair().getPrivate(); in createPrivateKey()
/libcore/ojluni/annotations/flagged_api/javax/security/auth/x500/
DX500PrivateCredential.annotated.java33 public X500PrivateCredential(java.security.cert.X509Certificate cert, java.security.PrivateKey key)… in X500PrivateCredential()
35 public X500PrivateCredential(java.security.cert.X509Certificate cert, java.security.PrivateKey key,… in X500PrivateCredential()
39 public java.security.PrivateKey getPrivateKey() { throw new RuntimeException("Stub!"); } in getPrivateKey()
/libcore/ojluni/src/main/java/java/security/interfaces/
DEdECPrivateKey.java27 import java.security.PrivateKey;
44 public interface EdECPrivateKey extends EdECKey, PrivateKey {
DXECPrivateKey.java27 import java.security.PrivateKey;
45 public interface XECPrivateKey extends XECKey, PrivateKey {
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()
/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 {
/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/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/test/java/security/KeyAgreement/
DKeySpecTest.java44 import java.security.PrivateKey;
142 PrivateKey priKey = kf.generatePrivate(priSpec); in testKeySpecs()
173 PrivateKey priKey = kf.generatePrivate(priSpec); in testEncodedKeySpecs()
240 PublicKey pubKey, PrivateKey priKey) throws Exception { in getKeyAgreementSecret()
252 PrivateKey priKey) { in testKeyEquals()
289 deserializedCopy(keyPair.getPrivate(), PrivateKey.class))) { in testSerialize()

1234