Package javax.security.auth.login

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


      confirmationCallback
        });
      } catch (IOException e) {
    LoginException le = new LoginException
      ("Problem retrieving keystore alias and passwords");
    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


        KeyStore.getInstance(keyStoreType, keyStoreProvider);
      }
  } catch (KeyStoreException e) {
      LoginException le = new LoginException
    ("The specified keystore type was not available");
      le.initCause(e);
      throw le;
  } catch (NoSuchProviderException e) {
      LoginException le = new LoginException
    ("The specified keystore provider was not available");
      le.initCause(e);
View Full Code Here

      le.initCause(e);
      throw le;
  } catch (NoSuchProviderException e) {
      LoginException le = new LoginException
    ("The specified keystore provider was not available");
      le.initCause(e);
      throw le;
  }

  /* Load KeyStore contents from file */
  try {
View Full Code Here

    in.close();
      }
  } catch (MalformedURLException e) {
      LoginException le = new LoginException
        ("Incorrect keyStoreURL option");
      le.initCause(e);
      throw le;
  } catch (GeneralSecurityException e) {
      LoginException le = new LoginException
        ("Error initializing keystore");
      le.initCause(e);
View Full Code Here

      le.initCause(e);
      throw le;
  } catch (GeneralSecurityException e) {
      LoginException le = new LoginException
        ("Error initializing keystore");
      le.initCause(e);
      throw le;
  } catch (IOException e) {
      LoginException le = new LoginException
        ("Error initializing keystore");
      le.initCause(e);
View Full Code Here

      le.initCause(e);
      throw le;
  } catch (IOException e) {
      LoginException le = new LoginException
        ("Error initializing keystore");
      le.initCause(e);
      throw le;
  }

  /* Get certificate chain and create a certificate path */
  try {
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

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.