/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...] |
/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 51 new KeyStore.SecretKeyEntry(sk); 63 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); 73 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk);
|
KSTrustedCertificateEntryTest.java | 32 * 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 73 new KeyStore.PrivateKeyEntry(pk, certs); 89 new KeyStore.PrivateKeyEntry(pk, chain); 95 new KeyStore.PrivateKeyEntry(pk, chain); 110 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain); 125 new KeyStore.PrivateKeyEntry(testPrivateKey, testChain); 137 KeyStore.PrivateKeyEntry ksPKE = new KeyStore.PrivateKeyEntry( 149 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; 39 this.protectionParameter = new KeyStore.PasswordProtection(password);
|
/frameworks/base/keystore/java/android/security/ |
KeyStoreParameter.java | 22 import java.security.KeyStore.ProtectionParameter; 26 * {@code KeyStore} entries that work with 27 * <a href="{@docRoot}training/articles/keystore.html">Android KeyStore 28 * facility</a>. The Android KeyStore facility is accessed through a 29 * {@link java.security.KeyStore} API using the {@code AndroidKeyStore} 31 * the user to unlock or initialize the Android KeyStore facility. 33 * Any entries placed in the {@code KeyStore} may be retrieved later. Note that 34 * there is only one logical instance of the {@code KeyStore} per application 36 * {@code KeyStore} [all...] |
/external/apache-harmony/x-net/src/test/java/javax/net/ssl/ |
MyKeyManagerFactorySpi.java | 25 import java.security.KeyStore; 38 protected void engineInit(KeyStore ks, char[] password) 45 throw new UnrecoverableKeyException("Incorrect keystore"); 73 private KeyStore keyStore; 76 public Parameters(KeyStore ks, char[] pass) { 77 this.keyStore = ks; 81 public KeyStore getKeyStore() { 82 return keyStore;
|
MyTrustManagerFactorySpi.java | 25 import java.security.KeyStore; 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 37 throw new KeyStoreException("Not supported operation for null KeyStore"); 65 private KeyStore keyStore; 67 public Parameters(KeyStore ks) { 68 this.keyStore = ks; 71 public KeyStore getKeyStore() { 72 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; 35 protected void engineInit(KeyStore ks) throws KeyStoreException { 37 throw new KeyStoreException("Not supported operation for null KeyStore"); 65 private KeyStore keyStore; 67 public Parameters(KeyStore ks) { 68 this.keyStore = ks; 71 public KeyStore getKeyStore() { 72 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 46 private static final String defaultType = "KeyStore"; 54 private static String NotSupportMsg = "Default KeyStore type is not supported"; 58 public KeyStore[] createKS() throws Exception { 60 KeyStore[] kpg = new KeyStore[3]; 62 kpg[0] = KeyStore.getInstance(defaultType); 63 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 64 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...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/config/ |
PKCS12StoreParameter.java | 4 import java.security.KeyStore; 5 import java.security.KeyStore.LoadStoreParameter; 6 import java.security.KeyStore.ProtectionParameter; 27 this(out, new KeyStore.PasswordProtection(password), forDEREncoding);
|