Lines Matching defs:key
59 * PrivateKeyEntry will have a Credentials.USER_PRIVATE_KEY as the private key,
61 * that corresponds to the private key), and then a Credentials.CA_CERTIFICATE
85 UnrecoverableKeyException t = new UnrecoverableKeyException("Can't get key");
195 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain)
201 if (key instanceof PrivateKey) {
202 setPrivateKeyEntry(alias, (PrivateKey) key, chain);
208 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain)
213 if (key instanceof OpenSSLRSAPrivateKey) {
214 pkeyAlias = ((OpenSSLRSAPrivateKey) key).getPkeyAlias();
215 } else if (key instanceof OpenSSLDSAPrivateKey) {
216 pkeyAlias = ((OpenSSLDSAPrivateKey) key).getPkeyAlias();
232 final String keyFormat = key.getFormat();
238 // Make sure we can actually encode the key.
239 keyBytes = key.getEncoded();
326 throw new KeyStoreException("Couldn't put private key in keystore");
340 throw new KeyStoreException("Operation not supported because key encoding is unknown");