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

1 2 3 4 5

  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
SignerTest.java 72 assertNull(s.getPrivateKey());
82 assertNull(s.getPrivateKey());
93 assertNull(s.getPrivateKey());
97 * verify Signer.getPrivateKey() returns null or private key
107 assertNull(s.getPrivateKey());
110 assertSame(privateKey, s.getPrivateKey());
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
PKCS11AuthenticationManager.java 45 public AndroidPrivateKey getPrivateKey(String alias);
SSLClientCertificateRequest.java 65 abstract AndroidPrivateKey getPrivateKey(String alias);
73 AndroidPrivateKey key = getPrivateKey(alias);
122 AndroidPrivateKey getPrivateKey(String alias) {
124 return sLocalKeyStore.createKey(KeyChain.getPrivateKey(mContext, alias));
168 AndroidPrivateKey getPrivateKey(String alias) {
169 return mPKCS11AuthManager.getPrivateKey(alias);
  /libcore/luni/src/test/java/libcore/java/security/cert/
PKIXParametersTest.java 29 KeyStore.PrivateKeyEntry pke = server.getPrivateKey("RSA", "RSA");
37 ks.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain());
44 keyOnly.setKeyEntry("key", pke.getPrivateKey(), password, pke.getCertificateChain());
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
SignerTest.java 81 assertNull(s.getPrivateKey());
91 assertNull(s.getPrivateKey());
106 assertNull(s.getPrivateKey());
123 * verify Signer.getPrivateKey() returns null or private key
133 assertNull(s.getPrivateKey());
136 assertSame(privateKey, s.getPrivateKey());
KeyStore2Test.java 59 private static PrivateKey getPrivateKey() throws Exception {
149 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert);
305 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert);
341 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert);
388 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert);
391 byte[] priB = getPrivateKey().getEncoded();
393 assertEquals(getPrivateKey().getAlgorithm(), returnedKey.getAlgorithm());
394 assertEquals(getPrivateKey().getFormat(), returnedKey.getFormat());
431 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert);
462 keyTest.setKeyEntry("alias2", getPrivateKey(), pssWord, cert)
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
KeyManagementTest.java 52 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA");
60 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA");
77 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA");
86 PrivateKey getPrivateKey(final byte[] key, String type)
  /external/chromium_org/chrome/android/shell/java/src/org/chromium/chrome/shell/
ChromeShellPKCS11AuthenticationManager.java 39 public AndroidPrivateKey getPrivateKey(String alias) {
  /libcore/luni/src/main/java/javax/net/ssl/
X509KeyManager.java 112 public PrivateKey getPrivateKey(String alias);
  /libcore/support/src/test/java/libcore/javax/net/ssl/
ForwardingX509ExtendedKeyManager.java 73 public PrivateKey getPrivateKey(String alias) {
74 return delegate.getPrivateKey(alias);
RandomPrivateKeyX509ExtendedKeyManager.java 45 public PrivateKey getPrivateKey(String alias) {
46 PrivateKey originalPrivateKey = super.getPrivateKey(alias);
  /libcore/luni/src/main/java/java/security/
Signer.java 69 public PrivateKey getPrivateKey() {
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
KeyManagerImplTest.java 56 assertNull(km.getPrivateKey("alias"));
79 assertTrue(km.getPrivateKey("ssl_test_store") != null);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
X509ExtendedKeyManagerTest.java 73 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String)
75 public PrivateKey getPrivateKey(String arg0) {
170 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String)
172 public PrivateKey getPrivateKey(String alias) {
  /libcore/luni/src/test/java/libcore/java/security/
KeyStoreTest.java 96 private static PrivateKeyEntry getPrivateKey() {
97 return getPrivateKey("RSA");
100 private static PrivateKeyEntry getPrivateKey(String keyType) {
113 entry = sTestKeyStore.getPrivateKey("RSA", "RSA");
115 entry = sTestKeyStore.getPrivateKey("DH", "RSA");
117 entry = sTestKeyStore.getPrivateKey("DSA", "DSA");
119 entry = sTestKeyStore.getPrivateKey("EC", "EC");
130 sPrivateKey2 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA");
265 getPrivateKey().getPrivateKey(),
    [all...]
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLECPrivateKey.java 144 return getPrivateKey();
147 private BigInteger getPrivateKey() {
172 if (!getPrivateKey().equals(other.getS())) {
  /libcore/luni/src/test/java/libcore/javax/net/ssl/
TrustManagerFactoryTest.java 155 PrivateKeyEntry pke = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName);
213 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
251 KeyStore.PrivateKeyEntry pke = getTestKeyStore().getPrivateKey("RSA", "RSA");
252 ks.setKeyEntry("key", pke.getPrivateKey(), "pw".toCharArray(), pke.getCertificateChain());
289 .signer(intermediateCa.getPrivateKey("RSA", "RSA"))
294 PrivateKeyEntry privateKeyEntry = leaf.getPrivateKey(algorithm, algorithm);
X509KeyManagerTest.java 54 .signer(ca.getPrivateKey(caKeyType, caKeyType))
  /packages/apps/KeyChain/tests/src/com/android/keychain/tests/
KeyChainTestActivity.java 107 KeyChain.getPrivateKey(null, null);
118 KeyChain.getPrivateKey(this, null);
129 KeyChain.getPrivateKey(null, "");
140 KeyChain.getPrivateKey(this, "");
274 @Override public PrivateKey getPrivateKey(String alias) {
276 log("KeyChainKeyManager getPrivateKey...");
277 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this,
KeyChainServiceTest.java 160 PrivateKeyEntry pke1 = TestKeyStore.getClientCertificate().getPrivateKey("RSA", "RSA");
171 PrivateKeyEntry pke2 = TestKeyStore.getServer().getPrivateKey("RSA", "RSA");
176 pke1.getPrivateKey().getEncoded()));
184 pke2.getPrivateKey().getEncoded()));
  /development/samples/KeyChainDemo/src/com/example/android/keychain/
KeyChainDemoActivity.java 204 final PrivateKey privateKey = getPrivateKey(alias);
273 private PrivateKey getPrivateKey(String alias) {
275 return KeyChain.getPrivateKey(this, alias);
291 && getPrivateKey(getAlias()) != null;
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
X509ExtendedKeyManagerTest.java 95 * @see javax.net.ssl.X509KeyManager#getPrivateKey(java.lang.String)
97 public PrivateKey getPrivateKey(String alias) {
  /libcore/support/src/test/java/tests/security/
KeyFactoryTest.java 54 PrivateKeySpec privateKeySpec = factory.getKeySpec(DefaultKeys.getPrivateKey(algorithmName),
  /packages/apps/Browser/src/com/android/browser/
KeyChainLookup.java 40 privateKey = KeyChain.getPrivateKey(mContext, mAlias);
  /libcore/luni/src/test/java/libcore/javax/crypto/
ECDHKeyAgreementTest.java 82 KAT_PRIVATE_KEY1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8);
84 KAT_PRIVATE_KEY2 = getPrivateKey(KAT_PRIVATE_KEY2_PKCS8);
97 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1);
101 getPrivateKey(KAT_PRIVATE_KEY2_PKCS8, keyFactoryProvider2);
392 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider)
404 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey)

Completed in 6812 milliseconds

1 2 3 4 5