/libcore/luni/src/main/java/java/security/cert/ |
H A D | PKIXBuilderParameters.java | 66 * @param keyStore 71 * if the {@code keyStore} is not initialized. 73 * if {@code keyStore} does not contained any trusted 76 public PKIXBuilderParameters(KeyStore keyStore, argument 80 super(keyStore);
|
H A D | PKIXParameters.java | 92 * @param keyStore 95 * if the {@code keyStore} is not initialized. 97 * if {@code keyStore} does not contained any trusted 100 public PKIXParameters(KeyStore keyStore) argument 103 if (keyStore == null) { 104 throw new NullPointerException("keyStore == null"); 107 // keyStore has not been initialized (loaded) 108 if (keyStore.size() == 0) { 109 throw new InvalidAlgorithmParameterException("keyStore.size() == 0"); 111 // keyStore i [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MyTrustManagerFactorySpi.java | 63 private KeyStore keyStore; field in class:MyTrustManagerFactorySpi.Parameters 65 this.keyStore = ks; 68 return keyStore;
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | MyTrustManagerFactorySpi.java | 63 private KeyStore keyStore; field in class:MyTrustManagerFactorySpi.Parameters 65 this.keyStore = ks; 68 return keyStore;
|
H A D | MyKeyManagerFactorySpi.java | 70 private KeyStore keyStore; field in class:MyKeyManagerFactorySpi.Parameters 73 this.keyStore = ks; 77 return keyStore;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | KeyStore4Test.java | 31 KeyStore keyStore; field in class:KeyStore4Test 43 keyStore = KeyStore.getInstance(KEY_STORE_TYPE); 44 keyStore.load(null, "PASSWORD".toCharArray()); 191 Key key = keyStore.getKey("keyalias", null); 202 keyStore.getKey("certalias", null); 224 keyStore.getKey("unknownalias", null); 235 keyStore.getKey("unknownalias", "PASSWORD".toCharArray()); 250 String alias = keyStore.getCertificateAlias(TestKeyStoreSpi.CERT); 265 keyStore.getCertificateAlias(null); 274 String certificateAlias = keyStore [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLSessionTest.java | 638 KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); 639 keyStore.load(inputStream, PASSWORD.toCharArray()); 641 return keyStore; 648 private KeyManager[] getKeyManagers(KeyStore keyStore) throws Exception { argument 651 keyManagerFactory.init(keyStore, PASSWORD.toCharArray());
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLContext.java | 160 return create(client.keyStore, client.storePassword, 161 server.keyStore, server.storePassword, 221 KeyStore keyStore) throws Exception { 224 for (String alias: Collections.list(keyStore.aliases())) { 225 if (!keyStore.isCertificateEntry(alias)) { 228 X509Certificate keyStoreCertificate = (X509Certificate) keyStore.getCertificate(alias); 238 KeyStore keyStore) throws Exception { 240 for (String alias: Collections.list(keyStore.aliases())) { 241 if (!keyStore.isCertificateEntry(alias)) { 244 Certificate keyStoreCertificate = keyStore 220 assertCertificateInKeyStore(Principal principal, KeyStore keyStore) argument 237 assertCertificateInKeyStore(Certificate certificate, KeyStore keyStore) argument [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | KeyStore.java | 754 * @param keyStore 762 * if {@code keyStore} or {@code protectionParameter} is 767 public static Builder newInstance(KeyStore keyStore, argument 769 if (keyStore == null) { 770 throw new NullPointerException("keyStore == null"); 775 if (!keyStore.isInit) { 778 return new BuilderImpl(keyStore, protectionParameter, null, null, null); 887 private KeyStore keyStore; field in class:KeyStore.Builder.BuilderImpl 908 * Constructor BuilderImpl initializes private fields: keyStore, 914 keyStore [all...] |
/libcore/support/src/test/java/libcore/java/security/ |
H A D | TestKeyStore.java | 101 public final KeyStore keyStore; field in class:TestKeyStore 108 private TestKeyStore(KeyStore keyStore, char[] storePassword, char[] keyPassword) { argument 109 this.keyStore = keyStore; 112 this.keyManagers = createKeyManagers(keyStore, storePassword); 113 this.trustManagers = createTrustManagers(keyStore); 117 public static KeyManager[] createKeyManagers(KeyStore keyStore, char[] storePassword) { argument 121 kmf.init(keyStore, storePassword); 128 public static TrustManager[] createTrustManagers(final KeyStore keyStore) { argument 132 tmf.init(keyStore); 415 createKeys(KeyStore keyStore, String keyAlgorithm, String publicAlias, String privateAlias, PrivateKeyEntry signer) argument 683 privateKey(KeyStore keyStore, char[] keyPassword, String keyAlgorithm, String signatureAlgorithm) argument 735 issuer(KeyStore keyStore, Certificate c) argument 785 rootCertificate(KeyStore keyStore, String algorithm) argument 885 dump(String context, KeyStore keyStore, char[] keyPassword) argument [all...] |