Package org.apache.geronimo.management.geronimo

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


                                                                            trustInstance == null ? null : trustInstance.getTrustManager(algorithm, null),
                                                                            new java.security.SecureRandom()});
            Object result = cls.getMethod("getSocketFactory", new Class[0]).invoke(ctx, new Object[0]);
            return (SSLSocketFactory) result;
        } catch (Exception e) {
            throw new KeystoreException("Unable to create SSL Factory", e);
        }
    }
View Full Code Here


        // OMG this hurts, but it causes ClassCastExceptions elsewhere unless done this way!
        try {
            Object result = sslContext.getClass().getMethod("getServerSocketFactory", new Class[0]).invoke(sslContext, new Object[0]);
            return (SSLServerSocketFactory) result;
        } catch (Exception e) {
            throw new KeystoreException("Unable to create SSL Server Factory", e);
        }
    }
View Full Code Here

            cls.getMethod("init", new Class[]{kmc, tmc, src}).invoke(ctx, new Object[]{keyInstance.getKeyManager(algorithm, keyAlias, null),
                                                                            trustInstance == null ? null : trustInstance.getTrustManager(algorithm, null),
                                                                            new java.security.SecureRandom()});
            return (SSLContext) ctx;
        } catch (Exception e) {
            throw new KeystoreException("Unable to create SSL Context", e);
        }
    }
View Full Code Here

            keystore.store(out, password);
            out.flush();
            out.close();
            return getKeystore(name, keystoreType);
        } catch (KeyStoreException e) {
            throw new KeystoreException("Unable to create keystore", e);
        } catch (IOException e) {
            throw new KeystoreException("Unable to create keystore", e);
        } catch (NoSuchAlgorithmException e) {
            throw new KeystoreException("Unable to create keystore", e);
        } catch (CertificateException e) {
            throw new KeystoreException("Unable to create keystore", e);
        }
    }
View Full Code Here

                    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

                    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

        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

                    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

                    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

        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

TOP

Related Classes of org.apache.geronimo.management.geronimo.KeystoreException

Copyright © 2018 www.massapicom. 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.