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
86
) sorted by null
1
2
3
4
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KeyPairTest.java
49
static PrivateKey
getPrivate
() {
89
Object kp = new KeyPair(TestKeyPair.getPublic(), TestKeyPair.
getPrivate
());
94
* Test #1 for <code>
getPrivate
()</code> method<br>
99
assertNull(kp.
getPrivate
());
103
* Test #2 for <code>
getPrivate
()</code> method<br>
108
PrivateKey pk = TestKeyPair.
getPrivate
();
110
assertSame(pk, kp.
getPrivate
());
Signature2Test.java
122
Signature.getInstance("DSA").initSign(keys.
getPrivate
());
171
sig.initSign(keys.
getPrivate
());
189
sig.initSign(keys.
getPrivate
());
200
sig.initSign(keys.
getPrivate
());
211
sig.initSign(keys.
getPrivate
());
221
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
());
KeyPairGenerator3Test.java
104
assertFalse("Incorrect private key", kp.
getPrivate
().equals(
105
kp1.
getPrivate
()));
128
assertFalse("Incorrect private key", kp.
getPrivate
().equals(
129
kp1.
getPrivate
()));
Signature2Test.java
225
Signature.getInstance("DSA").initSign(getDsaKeys().
getPrivate
());
228
Signature.getInstance("DSA").initSign(getRsaKeys().
getPrivate
());
237
sig.initSign(getDsaKeys().
getPrivate
(), new SecureRandom());
244
sig.initSign(getRsaKeys().
getPrivate
(), new SecureRandom());
331
sig.initSign(getDsaKeys().
getPrivate
());
349
sig.initSign(getDsaKeys().
getPrivate
());
375
sig.initSign(getDsaKeys().
getPrivate
());
400
sig.initSign(getDsaKeys().
getPrivate
());
419
sig.initSign(getDsaKeys().
getPrivate
());
436
sig.initSign(getDsaKeys().
getPrivate
());
[
all
...]
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
37
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
();
/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/support/src/test/java/libcore/javax/net/ssl/
RandomPrivateKeyX509ExtendedKeyManager.java
64
result = keyPairGenerator.generateKeyPair().
getPrivate
();
73
result = keyPairGenerator.generateKeyPair().
getPrivate
();
/external/okhttp/src/test/java/com/squareup/okhttp/internal/
SslContextBuilder.java
73
keyStore.setKeyEntry("private", keyPair.
getPrivate
(), password, certificateChain);
111
return generator.generateX509Certificate(keyPair.
getPrivate
(), "BC");
/libcore/benchmarks/src/benchmarks/regression/
SignatureBenchmark.java
78
this.privateKey = keyPair.
getPrivate
();
84
signer.initSign(keyPair.
getPrivate
());
Completed in 357 milliseconds
1
2
3
4