Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/security/
DKeyPair.java45 private PrivateKey privateKey; field in KeyPair
59 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { in KeyPair() argument
61 this.privateKey = privateKey; in KeyPair()
79 return privateKey; in getPrivate()
DSigner.java57 private PrivateKey privateKey; field in Signer
110 return privateKey; in getPrivateKey()
152 privateKey = priv; in setKeyPair()
158 if (publicKey != null && privateKey != null) { in printKeys()
DSignature.java677 public final void initSign(PrivateKey privateKey) in initSign() argument
679 engineInitSign(privateKey); in initSign()
704 public final void initSign(PrivateKey privateKey, SecureRandom random) in initSign() argument
706 engineInitSign(privateKey, random); in initSign()
1378 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
1382 if (sigSpi != null && (lock == null || privateKey == null)) { in engineInitSign()
1383 sigSpi.engineInitSign(privateKey); in engineInitSign()
1385 chooseProvider(I_PRIV, privateKey, null); in engineInitSign()
1389 protected void engineInitSign(PrivateKey privateKey, SecureRandom sr) in engineInitSign() argument
1393 if (sigSpi != null && (lock == null || privateKey == null)) { in engineInitSign()
[all …]
DSignatureSpi.java83 protected abstract void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
100 protected void engineInitSign(PrivateKey privateKey, in engineInitSign() argument
104 engineInitSign(privateKey); in engineInitSign()
DKeyStore.java525 public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain) { in PrivateKeyEntry() argument
526 this(privateKey, chain, Collections.<Attribute>emptySet()); in PrivateKeyEntry()
555 public PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain, in PrivateKeyEntry() argument
558 if (privateKey == null || chain == null || attributes == null) { in PrivateKeyEntry()
575 if (!privateKey.getAlgorithm().equals in PrivateKeyEntry()
582 this.privKey = privateKey; in PrivateKeyEntry()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyAgreementThread.java33 private PrivateKey privateKey = null; field in KeyAgreementThread.KeyAgreementGen
42 privateKey = keypair.getPrivate(); in KeyAgreementGen()
56 ka.init(privateKey); in getSecretKey()
/libcore/support/src/test/java/libcore/java/security/
DTestKeyStore.java502 privateKey(keyStore, keyPassword, "RSA", "RSA")); in build()
506 privateKey(keyStore, keyPassword, "DSA", "DSA")); in build()
559 final PrivateKey privateKey; in createKeys() local
564 privateKey = null; in createKeys()
601 privateKey = kp.getPrivate(); in createKeys()
605 privateKey = privateEntry.getPrivateKey(); in createKeys()
613 PrivateKey signingKey = (caKey == null) ? privateKey : caKey; in createKeys()
635 keyStore.setKeyEntry(privateAlias, privateKey, keyPassword, x509cc); in createKeys()
649 PrivateKey privateKey, in createCa() argument
653 return createCertificate(publicKey, privateKey, in createCa()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DSignatureBenchmark.java63 private PrivateKey privateKey; field in SignatureBenchmark
78 this.privateKey = keyPair.getPrivate(); in setUp()
104 signer.initSign(privateKey); in timeSign()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStorePrivateKeyEntryTest.java69 PrivateKey privateKey = keyPair.getPrivate(); in testGetCertificateChain() local
74 privateKey, new Certificate[] { certificate }); in testGetCertificateChain()
DSignerTest.java132 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData); in testGetPrivateKey() local
134 KeyPair kp = new KeyPair(publicKey, privateKey); in testGetPrivateKey()
141 assertSame(privateKey, s.getPrivateKey()); in testGetPrivateKey()
DSignatureSpiTest.java101 protected void engineInitSign(PrivateKey privateKey) in testEngineGetParameters()
156 public void engineInitSign(PrivateKey privateKey) { in engineInitSign() argument
190 public void engineInitSign(PrivateKey privateKey) { in engineInitSign() argument
231 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
273 protected void engineInitSign(PrivateKey privateKey, SecureRandom random) in engineInitSign() argument
DKeyFactory2Test.java124 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); in test_generatePrivateLjava_security_spec_KeySpec() local
127 Arrays.toString(privateKey.getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
128privateKey = fact.generatePrivate(new PKCS8EncodedKeySpec(keys.getPrivate().getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
131 Arrays.toString(privateKey.getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
247 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); in test_getKeySpecLjava_security_KeyLjava_lang_Class() local
254 Arrays.toString(privateKey.getEncoded())); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
DKeyFactoryTest.java240 PrivateKey privateKey = factory.generatePrivate(keySpec); in testGeneratePrivate() local
241 assertNotNull(privateKey); in testGeneratePrivate()
242 assertTrue(Arrays.equals(key.getEncoded(), privateKey.getEncoded())); in testGeneratePrivate()
DSignatureTest.java595 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
655 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
DSignature2Test.java556 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
/libcore/luni/src/test/java/libcore/java/security/
DMockSignatureSpi.java67 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument
68 checkKeyType(privateKey); in engineInitSign()
DSignatureTest.java236 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument
500 public void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument
/libcore/ojluni/annotations/hiddenapi/java/security/
DSignature.java88 public final void initSign(java.security.PrivateKey privateKey) in initSign() argument
94 java.security.PrivateKey privateKey, java.security.SecureRandom random) in initSign() argument
211 protected void engineInitSign(java.security.PrivateKey privateKey) in engineInitSign() argument
217 java.security.PrivateKey privateKey, java.security.SecureRandom random) in engineInitSign() argument
304 protected void engineInitSign(java.security.PrivateKey privateKey) in engineInitSign() argument
310 java.security.PrivateKey privateKey, java.security.SecureRandom sr) in engineInitSign() argument
DKeyStore.java392 java.security.PrivateKey privateKey, java.security.cert.Certificate[] chain) { in PrivateKeyEntry() argument
397 java.security.PrivateKey privateKey, in PrivateKeyEntry() argument
/libcore/ojluni/annotations/mmodule/java/security/
DSignature.annotated.java53 public final void initSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyExce… in initSign() argument
55 public final void initSign(java.security.PrivateKey privateKey, java.security.SecureRandom random) … in initSign() argument
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java142 PrivateKey privateKey = entry.getPrivateKey(); in testKeyStoreCreate() local
143 assertEquals(keyPair.getPrivate(), privateKey); in testKeyStoreCreate() local
DSignatureTestMD2withRSA.java142 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
/libcore/luni/src/test/java/libcore/java/security/cert/
DFakeOidProvider.java38 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java71 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarFileTest.java985 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument