Examples of KeyStoreException


Examples of org.apache.geronimo.management.geronimo.KeystoreException

                    fingerprints.put(alias, CertificateUtil.generateFingerprint(instance.getCertificate(alias, password), "MD5"));
                }
            } catch (KeystoreException e) {
                throw e;
            } catch (Exception e) {
                throw new KeystoreException("Unable to create key pair", e);
            }
        }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

        instance.importPKCS7Certificate(alias, pkcs7cert, password);
        fingerprints.put(alias, CertificateUtil.generateFingerprint(instance.getCertificate(alias, password), "MD5"));
            } catch (KeystoreException e) {
                throw e;
            } catch (Exception e) {
                throw new KeystoreException("Unable to import PKCS7 certificate", e);
      }
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

                    fingerprints.put(alias, CertificateUtil.generateFingerprint(instance.getCertificate(alias, password), "MD5"));
                }
            } catch (KeystoreException e) {
                throw e;
            } catch (Exception e) {
                throw new KeystoreException("Unable to import trust certificate", e);
            }
        }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

                    fingerprints.put(alias, CertificateUtil.generateFingerprint(instance.getCertificate(alias, password), "MD5"));
                }
            } catch (KeystoreException e) {
                throw e;
            } catch (Exception e) {
                throw new KeystoreException("Unable to create key pair", e);
            }
        }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

        instance.importPKCS7Certificate(alias, pkcs7cert, password);
        fingerprints.put(alias, CertificateUtil.generateFingerprint(instance.getCertificate(alias, password), "MD5"));
            } catch (KeystoreException e) {
                throw e;
            } catch (Exception e) {
                throw new KeystoreException("Unable to import PKCS7 certificate", e);
      }
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

        }
        ensureLoaded(password);
        try {
            kernel.setAttribute(abstractName, "keystorePassword", new String(password));
        } catch (Exception e) {
            throw new KeystoreException("Unable to set attribute keystorePassword on myself!", e);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

        try {
            kernel.setAttribute(abstractName, "keystorePassword", null);
            keyPasswords.clear();
            storePasswords();
        } catch (Exception e) {
            throw new KeystoreException("Unable to set attribute keystorePassword on myself!", e);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

        return (String[]) privateKeys.toArray(new String[privateKeys.size()]);
    }

    public void unlockPrivateKey(String alias, char[] storePassword, char[] password) throws KeystoreException {
        if (storePassword == null && keystorePassword == null) {
            throw new KeystoreException("storePassword is null and keystore is locked for availability.");
        }
        if(storePassword != null)
            getPrivateKey(alias, storePassword, password);
        else
            getPrivateKey(alias, keystorePassword, password);
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

            buf.append(entry.getKey()).append("=").append((char[])entry.getValue());
        }
        try {
            kernel.setAttribute(abstractName, "keyPasswords", buf.length() == 0 ? null : buf.toString());
        } catch (Exception e) {
            throw new KeystoreException("Unable to save key passwords in keystore '"+keystoreName+"'", e);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.management.geronimo.KeystoreException

        }
        ensureLoaded(storePassword);
        try {
            keystore.setCertificateEntry(alias, cert);
        } catch (KeyStoreException e) {
            throw new KeystoreException("Unable to set certificate entry in keystore '" + keystoreName + "' for alias '" + alias + "'", e);
        }
        trustCerts.add(alias);
        saveKeystore(storePassword);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.