/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
KeyChainDemoActivity.java | 36 import java.security.PrivateKey; 204 final PrivateKey privateKey = getPrivateKey(alias); 216 privateKeyTv.setText(privateKey.getFormat() + ":" + privateKey); 273 private PrivateKey getPrivateKey(String alias) {
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/netscape/ |
NetscapeCertRequest.java | 10 import java.security.PrivateKey; 208 public void sign(PrivateKey priv_key) throws NoSuchAlgorithmException, 215 public void sign(PrivateKey priv_key, SecureRandom rand)
|
/libcore/luni/src/main/java/java/security/ |
Signature.java | 273 * @param privateKey 276 * if {@code privateKey} is not valid. 278 public final void initSign(PrivateKey privateKey) 280 engineInitSign(privateKey); 289 * @param privateKey 294 * if {@code privateKey} is not valid. 296 public final void initSign(PrivateKey privateKey, SecureRandom random) 298 engineInitSign(privateKey, random) [all...] |
KeyStore.java | 47 * @see PrivateKey 322 * if {@code key} is a {@code PrivateKey} and {@code chain} does 333 // Certificate chain is required for PrivateKey 334 if (key != null && key instanceof PrivateKey && (chain == null || chain.length == 0)) { 359 * if {@code key} is a {@code PrivateKey} and {@code chain} [all...] |
KeyStoreSpi.java | 104 * if {@code key} is a {@code PrivateKey} and {@code chain} does 124 * if {@code key} is a {@code PrivateKey} and {@code chain} 373 if (key instanceof PrivateKey) { 374 return new KeyStore.PrivateKeyEntry((PrivateKey) key,
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestKeyManager.java | 22 import java.security.PrivateKey; 167 public PrivateKey getPrivateKey(String alias) { 171 PrivateKey pk = keyManager.getPrivateKey(alias);
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/ |
PKCS10CertificationRequest.java | 10 import java.security.PrivateKey; 287 PrivateKey signingKey) 315 PrivateKey signingKey) 330 PrivateKey signingKey, 346 PrivateKey signingKey,
|
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/build/ |
ApkBuilder.java | 32 import java.security.PrivateKey; 212 * Both the {@link PrivateKey} and the {@link X509Certificate} are guaranteed to be non-null. 216 public final PrivateKey key; 219 private SigningInfo(PrivateKey key, X509Certificate certificate) { 273 PrivateKey key = keyProvider.getDebugKey(); 344 * Optional {@link PrivateKey} and {@link X509Certificate} can be provided to sign the APK. 358 public ApkBuilder(String apkOsPath, String resOsPath, String dexOsPath, PrivateKey key, 404 * Optional {@link PrivateKey} and {@link X509Certificate} can be provided to sign the APK. 418 public ApkBuilder(File apkFile, File resFile, File dexFile, PrivateKey key, 429 * @see #ApkBuilder(File, File, File, PrivateKey, X509Certificate, PrintStream [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
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/src/main/java/org/bouncycastle/x509/ |
X509Util.java | 7 import java.security.PrivateKey; 245 PrivateKey key, 277 PrivateKey key,
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainTestActivity.java | 34 import java.security.PrivateKey; 274 @Override public PrivateKey getPrivateKey(String alias) { 277 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, 279 log("privateKey=" + privateKey); 280 return privateKey;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyFactory2Test.java | 28 import java.security.PrivateKey; 112 // Test for method java.security.PrivateKey 131 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); 133 .getEncoded(), privateKey.getEncoded()); 297 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); 302 .getEncoded(), privateKey.getEncoded()); 420 public PrivateKey engineGeneratePrivate(KeySpec keySpec) {
|
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 {
|
SignatureTest.java | 35 import java.security.PrivateKey; 153 * Class under test for void initSign(PrivateKey) 187 * Class under test for void initSign(PrivateKey, SecureRandom) 537 private class MyPrivateKey extends MyKey implements PrivateKey {} 574 protected void engineInitSign(PrivateKey privateKey)
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
KeyStore_Impl3Test.java | 28 import java.security.PrivateKey; 112 PrivateKey pk = new KeyStoreTestSupport.MyPrivateKey(tType, "", new byte[10]);
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JDKDigestSignature.java | 6 import java.security.PrivateKey; 91 PrivateKey privateKey) 94 if (!(privateKey instanceof RSAPrivateKey)) 96 throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey instance"); 99 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey);
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
ECUtil.java | 25 import java.security.PrivateKey; 141 PrivateKey key)
|
KeyAgreement.java | 8 import java.security.PrivateKey; 278 ECPrivateKeyParameters privKey = (ECPrivateKeyParameters)ECUtil.generatePrivateKeyParameter((PrivateKey)key);
|
Signature.java | 6 import java.security.PrivateKey; 86 PrivateKey privateKey, 92 if (privateKey instanceof ECKey) 94 param = ECUtil.generatePrivateKeyParameter(privateKey);
|
/frameworks/base/keystore/java/android/security/ |
KeyChain.java | 33 import java.security.PrivateKey; 293 * Returns the {@code PrivateKey} for the requested alias, or null 300 public static PrivateKey getPrivateKey(Context context, String alias)
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
KeyManagerImpl.java | 25 import java.security.PrivateKey; 123 public PrivateKey getPrivateKey(String alias) {
|
OpenSSLRSAKeyFactory.java | 23 import java.security.PrivateKey; 60 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException {
|
OpenSSLSignature.java | 22 import java.security.PrivateKey; 121 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { 124 if (privateKey instanceof OpenSSLDSAPrivateKey) { 129 OpenSSLDSAPrivateKey dsaPrivateKey = (OpenSSLDSAPrivateKey) privateKey; 131 } else if (privateKey instanceof DSAPrivateKey) { 136 DSAPrivateKey dsaPrivateKey = (DSAPrivateKey) privateKey; 138 } else if (privateKey instanceof OpenSSLRSAPrivateKey) { 143 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey; 145 } else if (privateKey instanceof RSAPrivateCrtKey) [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
TestKeyStoreSpi.java | 12 import java.security.PrivateKey; 205 if (key instanceof PrivateKey)
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/ |
ExportWizard.java | 53 import java.security.PrivateKey; 165 private PrivateKey mPrivateKey; 480 void setSigningInfo(PrivateKey privateKey, X509Certificate certificate) { 481 mPrivateKey = privateKey;
|