/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
AsymmetricKeyParameter.java | 8 boolean privateKey; 11 boolean privateKey) 13 this.privateKey = privateKey; 18 return privateKey;
|
/libcore/luni/src/main/java/java/security/ |
KeyPair.java | 26 * @see PrivateKey 32 private final PrivateKey privateKey; 41 * @param privateKey 44 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { 45 this.privateKey = privateKey; 54 public PrivateKey getPrivate() { 55 return privateKey; [all...] |
Signer.java | 33 private PrivateKey privateKey; 70 public PrivateKey getPrivateKey() { 71 return privateKey; 93 this.privateKey = pair.getPrivate();
|
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/ |
DigitalSignatureTest.java | 24 import java.security.PrivateKey; 79 PrivateKey privateKey = keyFactory 122 dsig.init(privateKey);
|
/packages/apps/Browser/src/com/android/browser/ |
KeyChainLookup.java | 24 import java.security.PrivateKey; 37 PrivateKey privateKey; 40 privateKey = KeyChain.getPrivateKey(mContext, mAlias); 49 mHandler.proceed(privateKey, certificateChain);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
KeyPairTest.java | 46 PrivateKeyStub privateKey = new PrivateKeyStub("privateAlgorithm", 51 keyPair = new KeyPair(publicKey, privateKey); 90 assertEquals("PrivateKey class", key1.getClass(), key2.getClass()); 91 assertEquals("PrivateKey algorithm", key1.getAlgorithm(), key2 93 assertEquals("PrivateKey format", key1.getFormat(), key2.getFormat()); 94 assertTrue("PrivateKey encoded", Arrays.equals(key1.getEncoded(),
|
/libcore/luni/src/main/java/org/apache/harmony/security/pkcs8/ |
PrivateKeyInfo.java | 39 * privateKey PrivateKey, 46 * PrivateKey ::= OCTET STRING 53 private final byte[] privateKey; 58 byte[] privateKey, List attributes) { 61 this.privateKey = privateKey; 66 AlgorithmIdentifier privateKeyAlgorithm, byte[] privateKey, 68 this(version, privateKeyAlgorithm, privateKey, attributes); 88 return privateKey; [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
DSAKeyFactoryImpl.java | 24 import java.security.PrivateKey; 50 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) 121 DSAPrivateKey privateKey = (DSAPrivateKey) key; 125 x = privateKey.getX(); 127 DSAParams params = privateKey.getParams(); 186 DSAPrivateKey privateKey = (DSAPrivateKey) key; 187 DSAParams params = privateKey.getParams(); 191 privateKey.getX(), params.getP(), params.getQ(),
|
/libcore/support/src/test/java/tests/security/ |
KeyFactoryTest.java | 22 import java.security.PrivateKey; 56 PrivateKey privateKey = factory.generatePrivate(privateKeySpec); 60 check(new KeyPair(publicKey, privateKey));
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 25 import java.security.PrivateKey; 69 PrivateKey privateKey = keyPair.getPrivate(); 74 privateKey, new Certificate[] { certificate });
|
SignerTest.java | 101 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData); 103 KeyPair kp = new KeyPair(publicKey, privateKey); 110 assertSame(privateKey, s.getPrivateKey());
|
KeyFactory2Test.java | 26 import java.security.PrivateKey; 92 // Test for method java.security.PrivateKey 111 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); 113 .getEncoded(), privateKey.getEncoded()); 262 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); 267 .getEncoded(), privateKey.getEncoded());
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
ECUtil.java | 4 import java.security.PrivateKey; 166 PrivateKey key) 203 PrivateKey privateKey = BouncyCastleProvider.getPrivateKey(PrivateKeyInfo.getInstance(bytes)); 205 if (privateKey instanceof java.security.interfaces.ECPrivateKey) 207 return ECUtil.generatePrivateKeyParameter(privateKey);
|
/frameworks/base/core/java/android/webkit/ |
ClientCertRequestHandler.java | 20 import java.security.PrivateKey; 54 public void proceed(PrivateKey privateKey, X509Certificate[] chain) { 57 mTable.Allow(mHostAndPort, privateKey, chainBytes); 59 if (privateKey instanceof OpenSSLKeyHolder) { 60 OpenSSLKey pkey = ((OpenSSLKeyHolder) privateKey).getOpenSSLKey(); 63 setSslClientCertFromPKCS8(privateKey.getEncoded(), chainBytes);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
KeyAgreementThread.java | 24 import java.security.PrivateKey; 33 private PrivateKey privateKey = null; 42 privateKey = keypair.getPrivate(); 56 ka.init(privateKey);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 25 import java.security.PrivateKey; 69 PrivateKey privateKey = keyPair.getPrivate(); 74 privateKey, new Certificate[] { certificate });
|
SignerTest.java | 127 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData); 129 KeyPair kp = new KeyPair(publicKey, privateKey); 136 assertSame(privateKey, s.getPrivateKey());
|
KeyFactoryTest.java | 13 import java.security.PrivateKey; 240 PrivateKey privateKey = factory.generatePrivate(keySpec); 241 assertNotNull(privateKey); 242 assertTrue(Arrays.equals(key.getEncoded(), privateKey.getEncoded())); 432 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) 524 static class TestPrivateKey implements PrivateKey {
|
/libcore/luni/src/test/java/tests/targets/security/ |
KeyStoreTest.java | 31 import java.security.PrivateKey; 142 PrivateKey privateKey = entry.getPrivateKey(); 143 assertEquals(keyPair.getPrivate(), privateKey);
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
RSA_SHA1.java | 23 import java.security.PrivateKey; 47 * of type java.security.PrivateKey, String, or byte[]. In the latter two 85 final static public String PRIVATE_KEY = "RSA-SHA1.PrivateKey"; 89 private PrivateKey privateKey = null; 100 if (privateKeyObject instanceof PrivateKey) { 101 privateKey = (PrivateKey)privateKeyObject; 103 privateKey = getPrivateKeyFromPem((String)privateKeyObject); 105 privateKey = getPrivateKeyFromDer((byte[])privateKeyObject) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
SHA1withDSA_SignatureTest.java | 35 import java.security.PrivateKey; 84 private static PrivateKey privateKey; 88 private static PrivateKey privateKey2; 92 private static PrivateKey myRSAPrivateKey; 118 privateKey = keys.getPrivate(); 160 signs[1].initSign(privateKey); 161 signs[2].initSign(privateKey, null); 162 signs[3].initSign(privateKey, mySecureRandom); 290 * The test against "initSign(PrivateKey)" method [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
SignatureBenchmark.java | 23 import java.security.PrivateKey; 64 private PrivateKey privateKey; 78 this.privateKey = keyPair.getPrivate(); 104 signer.initSign(privateKey);
|
/libcore/luni/src/test/java/libcore/java/security/ |
KeyStoreTest.java | 271 public static void setPrivateKeyNoPassword(KeyStore ks, String alias, PrivateKeyEntry privateKey) 273 ks.setKeyEntry(alias, privateKey.getPrivateKey(), null, privateKey.getCertificateChain()); 283 PrivateKeyEntry privateKey) 286 privateKey.getPrivateKey(), 288 privateKey.getCertificateChain()); 299 PrivateKeyEntry privateKey) 302 privateKey.getPrivateKey().getEncoded(), 303 privateKey.getCertificateChain()); 355 PrivateKeyEntry privateKey = (PrivateKeyEntry) actual [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 23 import java.security.PrivateKey; 231 PrivateKey privateKey = km.getPrivateKey(alias); 236 keyAlgName = privateKey.getAlgorithm(); 244 assertEquals(keyType, keyAlgName, privateKey.getAlgorithm()); 260 privateKeyEntry.getPrivateKey(), privateKey);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLUtils.java | 30 import java.security.PrivateKey; 120 @Override public abstract PrivateKey getPrivateKey(String alias); 172 public PrivateKey getPrivateKey(String alias) { 194 private final PrivateKey mPrivateKey; 214 PrivateKey privateKey; 216 privateKey = KeyChain.getPrivateKey(context, alias); 225 if (certificateChain == null || privateKey == null) { 229 return new KeyChainKeyManager(alias, certificateChain, privateKey); 242 String clientAlias, X509Certificate[] certificateChain, PrivateKey privateKey) [all...] |