HomeSort by relevance Sort by last modified time
    Searched refs:getPrivate (Results 1 - 25 of 103) sorted by null

1 2 3 4 5

  /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());
  /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 232 Signature.getInstance("DSA").initSign(getDsaKeys().getPrivate());
235 Signature.getInstance("DSA").initSign(getRsaKeys().getPrivate());
244 sig.initSign(getDsaKeys().getPrivate(), new SecureRandom());
251 sig.initSign(getRsaKeys().getPrivate(), new SecureRandom());
338 sig.initSign(getDsaKeys().getPrivate());
356 sig.initSign(getDsaKeys().getPrivate());
382 sig.initSign(getDsaKeys().getPrivate());
407 sig.initSign(getDsaKeys().getPrivate());
426 sig.initSign(getDsaKeys().getPrivate());
443 sig.initSign(getDsaKeys().getPrivate());
    [all...]
  /libcore/ojluni/src/main/java/java/security/
KeyPair.java 78 public PrivateKey getPrivate() {
  /libcore/support/src/test/java/tests/security/
CipherAsymmetricCryptHelper.java 32 test(keyPair.getPrivate(), keyPair.getPublic());
AlgorithmParameterKeyAgreementHelper.java 42 keyAgreement.init(keyPair.getPrivate());
KeyAgreementHelper.java 36 test(keyPair.getPrivate(), keyPair.getPublic());
KeyPairGeneratorTest.java 48 assertNotNull("no private key generated", keyPair.getPrivate());
SignatureHelper.java 39 test(keyPair.getPrivate(), keyPair.getPublic());
  /cts/tests/tests/keystore/src/android/keystore/cts/
ImportedKey.java 66 return mOriginalKeyPair.getPrivate();
74 return mOriginalKeyPair.getPrivate();
98 return mKeystoreBackedKeyPair.getPrivate();
106 return mKeystoreBackedKeyPair.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 47 priv = (DSAPrivateKey) keys.getPrivate();
55 priv = (DSAPrivateKey) keys.getPrivate();
DSAPrivateKeyTest.java 37 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());

Completed in 537 milliseconds

1 2 3 4 5