/libcore/ojluni/src/main/java/java/security/ |
D | KeyPair.java | 45 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()
|
D | Signer.java | 57 private PrivateKey privateKey; field in Signer 110 return privateKey; in getPrivateKey() 152 privateKey = priv; in setKeyPair() 158 if (publicKey != null && privateKey != null) { in printKeys()
|
D | Signature.java | 677 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 …]
|
D | SignatureSpi.java | 83 protected abstract void engineInitSign(PrivateKey privateKey) in engineInitSign() argument 100 protected void engineInitSign(PrivateKey privateKey, in engineInitSign() argument 104 engineInitSign(privateKey); in engineInitSign()
|
D | KeyStore.java | 525 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/ |
D | KeyAgreementThread.java | 33 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/ |
D | TestKeyStore.java | 502 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/ |
D | SignatureBenchmark.java | 63 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/ |
D | KeyStorePrivateKeyEntryTest.java | 69 PrivateKey privateKey = keyPair.getPrivate(); in testGetCertificateChain() local 74 privateKey, new Certificate[] { certificate }); in testGetCertificateChain()
|
D | SignerTest.java | 132 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()
|
D | SignatureSpiTest.java | 101 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
|
D | KeyFactory2Test.java | 124 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); in test_generatePrivateLjava_security_spec_KeySpec() local 127 Arrays.toString(privateKey.getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec() 128 … privateKey = 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()
|
D | KeyFactoryTest.java | 240 PrivateKey privateKey = factory.generatePrivate(keySpec); in testGeneratePrivate() local 241 assertNotNull(privateKey); in testGeneratePrivate() 242 assertTrue(Arrays.equals(key.getEncoded(), privateKey.getEncoded())); in testGeneratePrivate()
|
D | SignatureTest.java | 595 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument 655 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
|
D | Signature2Test.java | 556 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | MockSignatureSpi.java | 67 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument 68 checkKeyType(privateKey); in engineInitSign()
|
D | SignatureTest.java | 236 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/ |
D | Signature.java | 88 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
|
D | KeyStore.java | 392 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/ |
D | Signature.annotated.java | 53 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/ |
D | KeyStoreTest.java | 142 PrivateKey privateKey = entry.getPrivateKey(); in testKeyStoreCreate() local 143 assertEquals(keyPair.getPrivate(), privateKey); in testKeyStoreCreate() local
|
D | SignatureTestMD2withRSA.java | 142 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | FakeOidProvider.java | 38 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MySignature1.java | 71 protected void engineInitSign(PrivateKey privateKey) in engineInitSign() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | JarFileTest.java | 985 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument
|