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

1 2 3 4 5 6 7 8

  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
MyLoadStoreParams.java 24 import java.security.KeyStore;
27 * Additional class extends KeyStore.LoadStoreParameter
30 KeyStore.LoadStoreParameter {
32 KeyStore.ProtectionParameter protPar;
34 public MyLoadStoreParams(KeyStore.ProtectionParameter p) {
38 public KeyStore.ProtectionParameter getProtectionParameter() {
  /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;
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KSSecretKeyEntryTest.java 25 import java.security.KeyStore;
32 * Tests for <code>KeyStore.SecretKeyEntry</code> class constructor and methods
44 new KeyStore.SecretKeyEntry(sk);
52 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
54 assertTrue(ske instanceof KeyStore.SecretKeyEntry);
66 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
76 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk)
    [all...]
KSTrustedCertificateEntryTest.java 25 import java.security.KeyStore;
34 * Tests for <code>KeyStore.TrustedCertificateEntry</code> class constructor and methods
41 * Test for <codfe>KeyStore.TrustedCertificateEntry(Certificate trustCert)</code>
48 new KeyStore.TrustedCertificateEntry(cert);
55 KeyStore.TrustedCertificateEntry ksTCE = new KeyStore.TrustedCertificateEntry(cert);
57 assertTrue(ksTCE instanceof KeyStore.TrustedCertificateEntry);
69 KeyStore.TrustedCertificateEntry ksTCE =
70 new KeyStore.TrustedCertificateEntry(cert);
80 KeyStore.TrustedCertificateEntry ksTCE
    [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;
37 * Tests for <code>KeyStore.PrivateKeyEntry</code> class constructor and methods
66 new KeyStore.PrivateKeyEntry(pk, certs);
82 new KeyStore.PrivateKeyEntry(pk, chain);
88 new KeyStore.PrivateKeyEntry(pk, chain);
102 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
117 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
129 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry(
141 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);
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...]
KSPasswordProtectionTest.java 25 import java.security.KeyStore;
32 * Tests for <code>KeyStore.PasswordProtection</code> class constructor and methods
38 * Test for <code>KeyStore.PasswordProtection(char[] password)</code> constructor
49 KeyStore.PasswordProtection ksPWP = new KeyStore.PasswordProtection(pass);
66 ksPWP = new KeyStore.PasswordProtection(null);
  /libcore/luni/src/main/java/javax/net/ssl/
KeyStoreBuilderParameters.java 20 import java.security.KeyStore;
27 * {@code KeyStore.Builder}s.
30 * @see KeyStore.Builder
34 private final List<KeyStore.Builder> ksbuilders;
43 public KeyStoreBuilderParameters(KeyStore.Builder builder) {
52 * of {@code KeyStore.Builder}s.
59 public KeyStoreBuilderParameters(List<KeyStore.Builder> parameters) {
66 ksbuilders = Collections.unmodifiableList(new ArrayList<KeyStore.Builder>(parameters));
70 * Returns the unmodifiable list of {@code KeyStore.Builder}s associated
73 * @return the unmodifiable list of {@code KeyStore.Builder}s
    [all...]
TrustManagerFactorySpi.java 21 import java.security.KeyStore;
37 * Initializes this factory instance with the specified keystore as source
41 * the keystore or {@code null}.
45 protected abstract void engineInit(KeyStore ks) throws KeyStoreException;
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KSCallbackHandlerProtectionTest.java 24 import java.security.KeyStore;
33 * Tests for <code>KeyStore.CallbackHandlerProtection> class constructor and methods
48 * Test for <code>KeyStore.CallbackHandlerProtection(CallbackHandler handler)</code>
54 new KeyStore.CallbackHandlerProtection(null);
66 KeyStore.CallbackHandlerProtection ksCBH = new KeyStore.CallbackHandlerProtection(cbh);
KSSecretKeyEntryTest.java 30 * Tests for <code>KeyStore.SecretKeyEntry</code> class constructor and methods
50 new KeyStore.SecretKeyEntry(sk);
62 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
72 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
KSTrustedCertificateEntryTest.java 31 * Tests for <code>KeyStore.TrustedCertificateEntry</code> class constructor and methods
38 * Test for <codfe>KeyStore.TrustedCertificateEntry(Certificate trustCert)</code>
45 new KeyStore.TrustedCertificateEntry(cert);
57 KeyStore.TrustedCertificateEntry ksTCE =
58 new KeyStore.TrustedCertificateEntry(cert);
68 KeyStore.TrustedCertificateEntry ksTCE =
69 new KeyStore.TrustedCertificateEntry(cert);
KSPrivateKeyEntryTest.java 35 * Tests for <code>KeyStore.PrivateKeyEntry</code> class constructor and methods
72 new KeyStore.PrivateKeyEntry(pk, certs);
88 new KeyStore.PrivateKeyEntry(pk, chain);
94 new KeyStore.PrivateKeyEntry(pk, chain);
108 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
123 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain);
135 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry(
147 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry
    [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;
36 this.protectionParameter = new KeyStore.PasswordProtection(password);
  /external/apache-harmony/x-net/src/test/java/javax/net/ssl/
MyKeyManagerFactorySpi.java 25 import java.security.KeyStore;
39 protected void engineInit(KeyStore ks, char[] password)
46 throw new UnrecoverableKeyException("Incorrect keystore");
73 private KeyStore keyStore;
75 public Parameters (KeyStore ks, char[] pass) {
76 this.keyStore = ks;
79 public KeyStore getKeyStore() {
80 return keyStore;
MyTrustManagerFactorySpi.java 25 import java.security.KeyStore;
36 protected void engineInit(KeyStore ks) throws KeyStoreException {
38 throw new KeyStoreException("Not supported operation for null KeyStore");
66 private KeyStore keyStore;
67 public Parameters (KeyStore ks) {
68 this.keyStore = ks;
70 public KeyStore getKeyStore() {
71 return keyStore;
  /external/apache-harmony/x-net/src/test/support/common/java/org/apache/harmony/xnet/tests/support/
MyTrustManagerFactorySpi.java 21 import java.security.KeyStore;
36 protected void engineInit(KeyStore ks) throws KeyStoreException {
38 throw new KeyStoreException("Not supported operation for null KeyStore");
66 private KeyStore keyStore;
67 public Parameters (KeyStore ks) {
68 this.keyStore = ks;
70 public KeyStore getKeyStore() {
71 return keyStore;
  /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/luni/src/main/java/java/security/
KeyStoreSpi.java 33 * {@link KeyStore}.
35 * @see KeyStore
186 * {@link KeyStore.PrivateKeyEntry} or a {@link KeyStore.SecretKeyEntry}.
196 * {@link KeyStore.TrustedCertificateEntry}.
251 * if the given {@link KeyStore.LoadStoreParameter} is not
254 public void engineStore(KeyStore.LoadStoreParameter param)
294 * if the given {@link KeyStore.LoadStoreParameter} is not
297 public void engineLoad(KeyStore.LoadStoreParameter param)
304 KeyStore.ProtectionParameter pp = param.getProtectionParameter()
    [all...]
  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/
KeyStore_Impl3Test.java 27 import java.security.KeyStore;
39 * Tests for <code>KeyStore</code> constructor and methods
47 private static final String defaultType = "KeyStore";
55 private static String NotSupportMsg = "Default KeyStore type is not supported";
59 public KeyStore[] createKS() throws Exception {
61 KeyStore[] kpg = new KeyStore[3];
63 kpg[0] = KeyStore.getInstance(defaultType);
64 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider);
65 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName)
    [all...]
KSBuilder_ImplTest.java 28 import java.security.KeyStore;
50 * Tests for <code>KeyStore.Builder</code> class
56 private KeyStore.PasswordProtection protPass = new KeyStore.PasswordProtection(pass);
58 private KeyStore.CallbackHandlerProtection callbackHand = new KeyStore.CallbackHandlerProtection(tmpCall);
74 // Creates empty KeyStore and loads it to file
77 File ff = File.createTempFile("KSBuilder_ImplTest", "keystore");
81 KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType())
    [all...]
  /frameworks/base/keystore/java/android/security/
KeyStoreParameter.java 24 import java.security.KeyStore.ProtectionParameter;
29 * {@code KeyStore} entries that work with
30 * <a href="{@docRoot}guide/topics/security/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 application
39 * {@code KeyStore}
    [all...]

Completed in 3173 milliseconds

1 2 3 4 5 6 7 8