Package org.apache.ws.security.components.crypto

Examples of org.apache.ws.security.components.crypto.CredentialException


                }
            }
        } catch (Exception e) {
            e.printStackTrace();
            log.error("error creating ServerCryto",e);
            throw new CredentialException(3, "secError00", e);
        }

        /**
         * Load cacerts
         */
        String cacertsPath = System.getProperty("java.home") + "/lib/security/cacerts";
        InputStream cacertsIs = new FileInputStream(cacertsPath);
        try {
            String cacertsPasswd = properties.getProperty(PROP_ID_CACERT_PASS, "changeit");
            cacerts = KeyStore.getInstance(KeyStore.getDefaultType());
            cacerts.load(cacertsIs, cacertsPasswd.toCharArray());

        } catch (GeneralSecurityException e) {
            log.error("", e);
            throw new CredentialException(3, "secError00", e);
        } finally {
            cacertsIs.close();
        }

    }
View Full Code Here


        {
          return KeyMaterialWssCrypto.this.load();
        }
        catch( Exception e )
        {
          throw new CredentialException( 0, null, e );
        }
      }
      else
        return super.load( input, storepass, provider, type );
    }
View Full Code Here

     */
    if (is == null) {
      try {
        is = new FileInputStream(location);
      } catch (Exception e) {
        throw new CredentialException(3, "proxyNotFound",
            new Object[] { location });
      }
    }

    /**
 
View Full Code Here

                throws CredentialException {
            if ("this".equals(provider)) {
                try {
                    return KeyMaterialWssCrypto.this.load();
                } catch (Exception e) {
                    throw new CredentialException(0, null, e);
                }
            } else {
                return super.load(input, storepass, provider, type);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.ws.security.components.crypto.CredentialException

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.