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

1 2 3 4 5 6 7 8 91011

  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MyLoadStoreParams.java 25 import java.security.KeyStore;
28 * Additional class extends KeyStore.LoadStoreParameter
31 KeyStore.LoadStoreParameter {
33 KeyStore.ProtectionParameter protPar;
35 public MyLoadStoreParams(KeyStore.ProtectionParameter p) {
39 public KeyStore.ProtectionParameter getProtectionParameter() {
MyTrustManagerFactorySpi.java 21 import java.security.KeyStore;
35 protected void engineInit(KeyStore ks) throws KeyStoreException {
37 throw new KeyStoreException("Not supported operation for null KeyStore");
63 private KeyStore keyStore;
64 public Parameters (KeyStore ks) {
65 this.keyStore = ks;
67 public KeyStore getKeyStore() {
68 return keyStore;
  /frameworks/base/keystore/java/android/security/keystore/
KeyStoreCryptoOperation.java 17 package android.security.keystore;
19 import android.security.KeyStore;
22 * Cryptographic operation backed by {@link KeyStore}.
28 * Gets the KeyStore operation handle of this crypto operation.
30 * @return handle or {@code 0} if the KeyStore operation is not in progress.
AndroidKeyStoreLoadStoreParameter.java 17 package android.security.keystore;
19 import java.security.KeyStore;
20 import java.security.KeyStore.ProtectionParameter;
22 class AndroidKeyStoreLoadStoreParameter implements KeyStore.LoadStoreParameter {
KeyStoreCryptoOperationUtils.java 17 package android.security.keystore;
19 import android.security.KeyStore;
30 * Assorted utility methods for implementing crypto operations on top of KeyStore.
42 * the crypto operation in response to {@code KeyStore.begin} operation or {@code null} if
46 KeyStore keyStore, AndroidKeyStoreKey key, int beginOpResultCode) {
47 if (beginOpResultCode == KeyStore.NO_ERROR) {
54 keyStore.getInvalidKeyException(key.getAlias(), key.getUid(), beginOpResultCode);
56 case KeyStore.OP_AUTH_NEEDED:
71 * in response to {@code KeyStore.begin} operation or {@code null} if the {@code init} metho
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KSSecretKeyEntryTest.java 25 import java.security.KeyStore;
34 * Tests for <code>KeyStore.SecretKeyEntry</code> class constructor and methods
46 new KeyStore.SecretKeyEntry(sk);
54 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
56 assertTrue(ske instanceof KeyStore.SecretKeyEntry);
71 new KeyStore.SecretKeyEntry(sk, null /* attributes */);
83 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
94 KeyStore.Entry.Attribute myAttribute = new KeyStore.Entry.Attribute()
    [all...]
KSTrustedCertificateEntryTest.java 25 import java.security.KeyStore;
36 * Tests for <code>KeyStore.TrustedCertificateEntry</code> class constructor and methods
43 * Test for <codfe>KeyStore.TrustedCertificateEntry(Certificate trustCert)</code>
50 new KeyStore.TrustedCertificateEntry(cert);
57 KeyStore.TrustedCertificateEntry ksTCE = new KeyStore.TrustedCertificateEntry(cert);
59 assertTrue(ksTCE instanceof KeyStore.TrustedCertificateEntry);
73 new KeyStore.TrustedCertificateEntry(cert, null /* attributes */);
85 KeyStore.TrustedCertificateEntry ksTCE =
86 new KeyStore.TrustedCertificateEntry(cert)
    [all...]
KeyStoreBuilderTest.java 27 import java.security.KeyStore;
47 private KeyStore.PasswordProtection protPass = new KeyStore.PasswordProtection(
52 private KeyStore.CallbackHandlerProtection callbackHand = new KeyStore.CallbackHandlerProtection(
67 "KeyStore." + KeyStore.getDefaultType())[0];
87 * test for method newInstance(KeyStore, KeyStore.ProtectionParameter)
95 KeyStore.Builder.newInstance(null, null)
    [all...]
KSPrivateKeyEntryTest.java 25 import java.security.KeyStore;
40 * Tests for <code>KeyStore.PrivateKeyEntry</code> class constructor and methods
69 new KeyStore.PrivateKeyEntry(pk, certs);
85 new KeyStore.PrivateKeyEntry(pk, chain);
91 new KeyStore.PrivateKeyEntry(pk, chain);
105 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
120 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
136 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain, null /* attributes */);
148 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry
    [all...]
KSCallbackHandlerProtectionTest.java 26 import java.security.KeyStore;
37 * Tests for <code>KeyStore.CallbackHandlerProtection> class constructor and methods
43 * Test for <code>KeyStore.CallbackHandlerProtection(CallbackHandler handler)</code>
49 new KeyStore.CallbackHandlerProtection(null);
64 new KeyStore.CallbackHandlerProtection(new TestCallbackHandler());
77 KeyStore.CallbackHandlerProtection ksCBH = new KeyStore.CallbackHandlerProtection(cbh);
KSPasswordProtectionTest.java 25 import java.security.KeyStore;
34 * Tests for <code>KeyStore.PasswordProtection</code> class constructor and methods
40 * Test for <code>KeyStore.PasswordProtection(char[] password)</code> constructor
51 KeyStore.PasswordProtection ksPWP = new KeyStore.PasswordProtection(pass);
68 ksPWP = new KeyStore.PasswordProtection(null);
75 * Test for <code>KeyStore.PasswordProtection(char[] password, String protectionAlgorithm,
86 KeyStore.PasswordProtection ksPWP;
88 ksPWP = new KeyStore.PasswordProtection(
93 ksPWP = new KeyStore.PasswordProtection
    [all...]
KeyStore2Test.java 29 import java.security.KeyStore;
143 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType());
162 * java.security.KeyStore#aliases()
166 // java.security.KeyStore.aliases()
172 KeyStore keyTest = KeyStore.getInstance(KeyStore.getDefaultType());
182 // KeyStore keyTest
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
JDKPKCS12StoreParameter.java 4 import java.security.KeyStore;
5 import java.security.KeyStore.LoadStoreParameter;
6 import java.security.KeyStore.ProtectionParameter;
39 this.protectionParameter = new KeyStore.PasswordProtection(password);
  /libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
MyTrustManagerFactorySpi.java 21 import java.security.KeyStore;
35 protected void engineInit(KeyStore ks) throws KeyStoreException {
37 throw new KeyStoreException("Not supported operation for null KeyStore");
63 private KeyStore keyStore;
64 public Parameters (KeyStore ks) {
65 this.keyStore = ks;
67 public KeyStore getKeyStore() {
68 return keyStore;
  /libcore/ojluni/src/main/java/java/security/
KeyStoreSpi.java 31 import java.security.KeyStore;
32 import java.security.KeyStore.*;
42 * for the {@code KeyStore} class.
45 * of a keystore for a particular keystore type.
50 * @see KeyStore
134 * <p>If the given alias already exists, the keystore information
162 * <p>If the given alias already exists, the keystore information
200 * Deletes the entry identified by the given alias from this keystore.
210 * Lists all the alias names of this keystore
    [all...]
  /libcore/luni/src/test/java/libcore/java/security/
DomainLoadStoreParameterTest.java 22 import java.security.KeyStore;
29 private KeyStore.ProtectionParameter protectionParameter;
35 protectionParameter = new KeyStore.ProtectionParameter() {};
65 Map<String, KeyStore.ProtectionParameter> protectionParameters =
69 Map<String, KeyStore.ProtectionParameter> returnedParams =
82 Map<String, KeyStore.ProtectionParameter> originalProtectionParameters
93 * Check that always returns null. Keystore domains do not support a protection parameter.
99 // Check that always returns null. Keystore domains do not support a protection parameter.
103 private Map<String, KeyStore.ProtectionParameter> createNonEmptyParameters(
104 String keyStoreName, KeyStore.ProtectionParameter protectionParameter)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/config/
PKCS12StoreParameter.java 4 import java.security.KeyStore;
5 import java.security.KeyStore.ProtectionParameter;
25 super(out, new KeyStore.PasswordProtection(password), forDEREncoding);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/
PKCS12StoreParameter.java 4 import java.security.KeyStore;
5 import java.security.KeyStore.LoadStoreParameter;
6 import java.security.KeyStore.ProtectionParameter;
33 this(out, new KeyStore.PasswordProtection(password), forDEREncoding);
54 * Return whether the KeyStore used with this parameter should be DER encoded on saving.
  /external/conscrypt/platform/src/main/java/org/conscrypt/
TrustManagerFactoryImpl.java 39 import java.security.KeyStore;
57 private KeyStore keyStore;
60 * @see javax.net.ssl.TrustManagerFactorySpi#engineInit(KeyStore)
63 public void engineInit(KeyStore ks) throws KeyStoreException {
65 keyStore = ks;
67 keyStore = KeyStore.getInstance("AndroidCAStore");
69 keyStore.load(null, null);
95 if (keyStore == null)
    [all...]
  /frameworks/base/keystore/java/android/security/
KeyStoreParameter.java 22 import android.security.keystore.KeyProtection;
25 import java.security.KeyStore.ProtectionParameter;
29 * {@code KeyStore} entries that work with
30 * <a href="{@docRoot}training/articles/keystore.html">Android KeyStore
31 * facility</a>. The Android KeyStore facility is accessed through a
32 * {@link java.security.KeyStore} API using the {@code AndroidKeyStore}
34 * the user to unlock or initialize the Android KeyStore facility.
36 * Any entries placed in the {@code KeyStore} may be retrieved later. Note that
37 * there is only one logical instance of the {@code KeyStore} per applicatio
    [all...]
  /libcore/ojluni/src/main/java/javax/net/ssl/
KeyManagerFactorySpi.java 52 * @see KeyManagerFactory#init(KeyStore, char[])
54 protected abstract void engineInit(KeyStore ks, char[] password) throws
60 * In some cases, initialization parameters other than a keystore
TrustManagerFactorySpi.java 49 * @see TrustManagerFactory#init(KeyStore)
51 protected abstract void engineInit(KeyStore ks) throws KeyStoreException;
57 * In some cases, initialization parameters other than a keystore
  /system/tpm/attestation/server/
key_store.h 29 class KeyStore {
31 KeyStore() {}
32 virtual ~KeyStore() {}
77 DISALLOW_COPY_AND_ASSIGN(KeyStore);
  /packages/apps/KeyChain/support/src/com/android/keychain/tests/support/
KeyChainServiceTestSupport.java 24 import android.security.KeyStore;
30 private final KeyStore mKeyStore = KeyStore.getInstance();
44 return mKeyStore.put(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
48 return mKeyStore.importKey(key, value, KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
  /frameworks/base/core/tests/coretests/src/android/net/http/
X509TrustManagerExtensionsTest.java 19 import java.security.KeyStore;
53 String defaultType = KeyStore.getDefaultType();
54 TrustManagerImpl tmi = new TrustManagerImpl(KeyStore.getInstance(defaultType));
61 String defaultKeystoreType = KeyStore.getDefaultType();
62 tmf.init(KeyStore.getInstance(defaultKeystoreType));

Completed in 331 milliseconds

1 2 3 4 5 6 7 8 91011