Package javax.security.auth.login

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


         return true;
      }
      catch (Exception e)
      {
         LoginException le = new LoginException();
         le.initCause(e);
         throw le;
      }
   }

   /**
 
View Full Code Here


      }
      catch(Exception e)
      {
         if (e instanceof LoginException) throw (LoginException) e;
         final LoginException loginException = new LoginException("Failed to complete SRP login (" + e.getMessage() + ")");
         loginException.initCause(e);
         throw loginException;
      }

      if( trace )
         log.trace("Verifying server response");
View Full Code Here

      }
      catch(Exception e)
      {
         if (e instanceof LoginException) throw (LoginException) e;
         final LoginException loginException = new LoginException("Failed to remove user principal (" + e.getMessage() + ")");
         loginException.initCause(e);
         throw loginException;
      }
      return true;
   }
View Full Code Here

            this.auxChallenge = tic.getText();
      }
      catch(java.io.IOException e)
      {
         final LoginException loginException = new LoginException(e.toString());
         loginException.initCause(e);
         throw loginException;
      }
      catch(UnsupportedCallbackException uce)
      {
         final LoginException loginException = new LoginException("UnsupportedCallback: " + uce.getCallback().toString());
View Full Code Here

         throw loginException;
      }
      catch(UnsupportedCallbackException uce)
      {
         final LoginException loginException = new LoginException("UnsupportedCallback: " + uce.getCallback().toString());
         loginException.initCause(uce);
         throw loginException;
      }
   }

   private SRPServerInterface loadServerFromJndi(String jndiName)
View Full Code Here

      }
      catch(Exception e)
      {
         if (e instanceof LoginException) throw (LoginException) e;
         final LoginException loginException = new LoginException("Failed to encrypt aux challenge");
         loginException.initCause(e);
         throw loginException;
      }
      return sealedObject;
   }
View Full Code Here

      }
      catch(Exception e)
      {
         if (e instanceof LoginException) throw (LoginException) e;
         final LoginException loginException = new LoginException("Failed to create SecretKey");
         loginException.initCause(e);
         throw loginException;
      }
      return secretKey;
   }
}
View Full Code Here

         }
      }
      catch(IOException e)
      {
         LoginException le = new LoginException("Failed to get username/password");
         le.initCause(e);
         throw le;
      }
      catch(UnsupportedCallbackException e)
      {
         LoginException le = new LoginException("CallbackHandler does not support: " + e.getCallback());
View Full Code Here

         throw le;
      }
      catch(UnsupportedCallbackException e)
      {
         LoginException le = new LoginException("CallbackHandler does not support: " + e.getCallback());
         le.initCause(e);
         throw le;
      }
      info[0] = username;
      info[1] = password;
      return info;
View Full Code Here

            return passwordHash;
         }
         catch (InvocationTargetException e)
         {
            LoginException le = new LoginException("Failed to delegate createPasswordHash");
            le.initCause(e.getTargetException());
            throw le;
         }
         catch(Exception e)
         {
            LoginException le = new LoginException("Failed to delegate createPasswordHash");
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.