OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getPrivate
(Results
1 - 25
of
89
) sorted by null
1
2
3
4
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KeyPairTest.java
52
static PrivateKey
getPrivate
() {
96
Object kp = new KeyPair(TestKeyPair.getPublic(), TestKeyPair.
getPrivate
());
101
* Test #1 for <code>
getPrivate
()</code> method<br>
106
assertNull(kp.
getPrivate
());
110
* Test #2 for <code>
getPrivate
()</code> method<br>
116
PrivateKey pk = TestKeyPair.
getPrivate
();
118
assertSame(pk, kp.
getPrivate
());
Signature2Test.java
123
Signature.getInstance("DSA").initSign(keys.
getPrivate
());
172
sig.initSign(keys.
getPrivate
());
190
sig.initSign(keys.
getPrivate
());
201
sig.initSign(keys.
getPrivate
());
212
sig.initSign(keys.
getPrivate
());
222
sig.initSign(keys.
getPrivate
());
KeyPairGenerator3Test.java
103
assertFalse("Incorrect private key", kp.
getPrivate
().equals(
104
kp1.
getPrivate
()));
127
assertFalse("Incorrect private key", kp.
getPrivate
().equals(
128
kp1.
getPrivate
()));
SignedObjectTest.java
49
SignedObject so = new SignedObject(prop, tkp.
getPrivate
(), sig);
KeyFactory2Test.java
109
KeySpec privateKeySpec = fact.getKeySpec(keys.
getPrivate
(),
112
boolean samePrivate = Arrays.equals(keys.
getPrivate
()
117
fact.generatePrivate(new PKCS8EncodedKeySpec(keys.
getPrivate
()
258
KeySpec privateKeySpec = fact.getKeySpec(keys.
getPrivate
(),
266
boolean samePrivate = Arrays.equals(keys.
getPrivate
()
278
encodedSpec = fact.getKeySpec(keys.
getPrivate
(),
332
fact.translateKey(keys.
getPrivate
());
KeyStorePrivateKeyEntryTest.java
69
PrivateKey privateKey = keyPair.
getPrivate
();
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyPairTest.java
52
static PrivateKey
getPrivate
() {
77
kp = new KeyPair(null, TestKeyPair.
getPrivate
());
90
Object kp = new KeyPair(TestKeyPair.getPublic(), TestKeyPair.
getPrivate
());
95
* Test #1 for <code>
getPrivate
()</code> method<br>
100
assertNull(kp.
getPrivate
());
104
* Test #2 for <code>
getPrivate
()</code> method<br>
109
PrivateKey pk = TestKeyPair.
getPrivate
();
111
assertSame(pk, kp.
getPrivate
());
Signature2Test.java
81
s.initSign(keyPair.
getPrivate
());
235
Signature.getInstance("DSA").initSign(getDsaKeys().
getPrivate
());
238
Signature.getInstance("DSA").initSign(getRsaKeys().
getPrivate
());
247
sig.initSign(getDsaKeys().
getPrivate
(), new SecureRandom());
254
sig.initSign(getRsaKeys().
getPrivate
(), new SecureRandom());
341
sig.initSign(getDsaKeys().
getPrivate
());
359
sig.initSign(getDsaKeys().
getPrivate
());
385
sig.initSign(getDsaKeys().
getPrivate
());
410
sig.initSign(getDsaKeys().
getPrivate
());
429
sig.initSign(getDsaKeys().
getPrivate
());
[
all
...]
KeyPairGenerator3Test.java
104
assertFalse("Incorrect private key", kp.
getPrivate
().equals(
105
kp1.
getPrivate
()));
128
assertFalse("Incorrect private key", kp.
getPrivate
().equals(
129
kp1.
getPrivate
()));
KeyFactory2Test.java
122
KeySpec privateKeySpec = fact.getKeySpec(keys.
getPrivate
(),
126
Arrays.toString(keys.
getPrivate
().getEncoded()),
128
privateKey = fact.generatePrivate(new PKCS8EncodedKeySpec(keys.
getPrivate
().getEncoded()));
130
Arrays.toString(keys.
getPrivate
().getEncoded()),
243
KeySpec privateKeySpec = fact.getKeySpec(keys.
getPrivate
(),
253
Arrays.toString(keys.
getPrivate
().getEncoded()),
265
encodedSpec = fact.getKeySpec(keys.
getPrivate
(),
300
fact.translateKey(keys.
getPrivate
());
/libcore/luni/src/main/java/java/security/
KeyPair.java
54
public PrivateKey
getPrivate
() {
Signer.java
88
if (pair.
getPrivate
() == null || pair.getPublic() == null) {
92
this.privateKey = pair.
getPrivate
();
/libcore/support/src/test/java/tests/security/
CipherAsymmetricCryptHelper.java
32
test(keyPair.
getPrivate
(), keyPair.getPublic());
KeyPairGeneratorTest.java
57
assertNotNull("no private key generated", keyPair.
getPrivate
());
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
AsymmetricCipherKeyPair.java
57
public AsymmetricKeyParameter
getPrivate
()
/libcore/luni/src/test/java/libcore/java/security/
OldKeyPairGeneratorTestDH.java
36
assertNotNull("no private key generated", keyPair.
getPrivate
());
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
DHPrivateKeyTest.java
56
DHPrivateKey pk1 = (DHPrivateKey) kp1.
getPrivate
();
57
DHPrivateKey pk2 = (DHPrivateKey) kp2.
getPrivate
();
/libcore/luni/src/test/java/tests/security/interfaces/
DSAPublicKeyTest.java
49
priv = (DSAPrivateKey) keys.
getPrivate
();
57
priv = (DSAPrivateKey) keys.
getPrivate
();
DSAPrivateKeyTest.java
39
DSAPrivateKey key = (DSAPrivateKey) keyPair.
getPrivate
();
/libcore/support/src/test/java/libcore/javax/net/ssl/
RandomPrivateKeyX509ExtendedKeyManager.java
65
result = keyPairGenerator.generateKeyPair().
getPrivate
();
74
result = keyPairGenerator.generateKeyPair().
getPrivate
();
78
result = keyPairGenerator.generateKeyPair().
getPrivate
();
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
KeyPairTest.java
87
key1 = ((KeyPair) test).
getPrivate
();
88
key2 = ((KeyPair) reference).
getPrivate
();
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
EncodedKeySpec2Test.java
55
encoded = keys.
getPrivate
().getEncoded();
59
isEqual(key, keys.
getPrivate
()));
/libcore/luni/src/test/java/tests/security/spec/
EncodedKeySpec2Test.java
56
encoded = keys.
getPrivate
().getEncoded();
60
isEqual(key, keys.
getPrivate
()));
/libcore/benchmarks/src/benchmarks/regression/
SignatureBenchmark.java
78
this.privateKey = keyPair.
getPrivate
();
84
signer.initSign(keyPair.
getPrivate
());
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherRSAThread.java
45
cip.init(Cipher.DECRYPT_MODE, kp.
getPrivate
());
Completed in 1220 milliseconds
1
2
3
4