Package javax.security.auth.login

Examples of javax.security.auth.login.LoginException.initCause()


                try {
                    in.close();
                } catch (IOException ioe) {
                    LoginException le = new LoginException
                                ("Error initializing keystore");
                    le.initCause(ioe);
                    throw le;
                }
            }
        }
View Full Code Here


                certP =
                    certF.generateCertPath(certList);
            }
        } catch (KeyStoreException e) {
            LoginException le = new LoginException("Error using keystore");
            le.initCause(e);
            throw le;
        } catch (CertificateException ce) {
            LoginException le = new LoginException
                ("Error: X.509 Certificate type unavailable");
            le.initCause(ce);
View Full Code Here

            le.initCause(e);
            throw le;
        } catch (CertificateException ce) {
            LoginException le = new LoginException
                ("Error: X.509 Certificate type unavailable");
            le.initCause(ce);
            throw le;
        }

        /* Get principal and keys */
        try {
View Full Code Here

            privateCredential = new X500PrivateCredential(
                certificate, (PrivateKey) privateKey, keyStoreAlias);
        } catch (KeyStoreException e) {
            LoginException le = new LoginException("Error using keystore");
            le.initCause(e);
            throw le;
        } catch (NoSuchAlgorithmException e) {
            LoginException le = new LoginException("Error using keystore");
            le.initCause(e);
            throw le;
View Full Code Here

            LoginException le = new LoginException("Error using keystore");
            le.initCause(e);
            throw le;
        } catch (NoSuchAlgorithmException e) {
            LoginException le = new LoginException("Error using keystore");
            le.initCause(e);
            throw le;
        } catch (UnrecoverableKeyException e) {
            FailedLoginException fle = new FailedLoginException
                                ("Unable to recover key from keystore");
            fle.initCause(e);
View Full Code Here

                        break;
                    } catch (DestroyFailedException dfe) {
                        LoginException le = new LoginException
                            ("Unable to destroy private credential, "
                             + obj.getClass().getName());
                        le.initCause(dfe);
                        throw le;
                    }
                }
            }
View Full Code Here

      in.close();
  } catch (IOException e) {
      LoginException le = new LoginException
    ("Problem accessing keystore password \"" +
    keyStorePasswordURL + "\"");
      le.initCause(e);
      throw le;
  }
    }

    private void checkKeyPass() throws LoginException {
View Full Code Here

    in.close();
      } catch (IOException e) {
    LoginException le = new LoginException
      ("Problem accessing private key password \"" +
      privateKeyPasswordURL + "\"");
    le.initCause(e);
    throw le;
      }
  }
    }
View Full Code Here

      bannerCallback, aliasCallback, confirmationCallback
        });
      } catch (IOException e) {
    LoginException le = new LoginException
      ("Problem retrieving keystore alias");
    le.initCause(e);
    throw le;
      } catch (UnsupportedCallbackException e) {
    throw new LoginException(
        "Error: " + e.getCallback().toString() +
        " is not available to retrieve authentication " +
View Full Code Here

      storePassCallback, confirmationCallback
        });
      } catch (IOException e) {
    LoginException le = new LoginException
      ("Problem retrieving keystore alias and password");
    le.initCause(e);
    throw le;
      } catch (UnsupportedCallbackException e) {
    throw new LoginException(
        "Error: " + e.getCallback().toString() +
        " is not available to retrieve authentication " +
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.