Lines Matching refs:chain
77 * Credentials.USER_CERTIFICATE as the first certificate in the chain (the one
79 * entry which will have the rest of the chain concatenated in BER format.
271 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
278 setPrivateKeyEntry(alias, (PrivateKey) key, chain, null);
339 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain,
367 // Make sure the chain exists since this is a PrivateKey
368 if ((chain == null) || (chain.length == 0)) {
372 // Do chain type checking.
373 X509Certificate[] x509chain = new X509Certificate[chain.length];
374 for (int i = 0; i < chain.length; i++) {
375 if (!"X.509".equals(chain[i].getType())) {
380 if (!(chain[i] instanceof X509Certificate)) {
385 x509chain[i] = (X509Certificate) chain[i];
396 * If we have a chain, store it in the CA certificate slot for this
401 if (chain.length > 1) {
403 * The chain is passed in as {user_cert, ca_cert_1, ca_cert_2, ...}
552 // Store the certificate chain
556 throw new KeyStoreException("Failed to store certificate chain",
832 public void engineSetKeyEntry(String alias, byte[] userKey, Certificate[] chain)
956 * says to only compare the first certificate in the chain which is