Package javax.security.auth.message

Examples of javax.security.auth.message.AuthException.initCause()


                }
                logger.log(Level.INFO, "Redirecting to {0}", origRequest);
                response.sendRedirect(response.encodeRedirectURL(origRequest));
            } catch (Exception ex) {
                AuthException ae = new AuthException();
                ae.initCause(ex);
                throw ae;
            }

            // Continue...
            return AuthStatus.SEND_CONTINUE;
View Full Code Here


            RequestDispatcher rd = request.getRequestDispatcher(this.loginErrorPage);
            try {
                rd.forward(request, response);
            } catch (Exception ex) {
                AuthException ae = new AuthException();
                ae.initCause(ex);
                throw ae;
            }
            return AuthStatus.SEND_FAILURE;
        }
    }
View Full Code Here

      }
      catch (LoginException e)
      {
         log.debug("validateRequest:lc.login throws an exception::", e);
         AuthException ae = new AuthException("validateRequest failed::"+ e.getLocalizedMessage());
         ae.initCause(e);
         throw ae;
      }
     
      return AuthStatus.PROCEED;
   }
View Full Code Here

      }
      catch (LoginException e)
      {
         log.debug("disposeSubject:lc.logout throws an exception::", e);
         AuthException ae = new AuthException("disposeSubject failed::"+ e.getLocalizedMessage());
         ae.initCause(e);
         throw ae;      
      }
   }
  
   /**
 
View Full Code Here

        
      }catch (LoginException e)
      {
         log.debug("validateRequest:Instantiation of LoginContext failed::", e);
         AuthException ae = new AuthException("validateRequest failed::"+ e.getLocalizedMessage());
         ae.initCause(e);
         throw ae;
      }
      try
      {
         lc.login();
View Full Code Here

        try {
            getLc();
        } catch (LoginException ex) {
            LOGGER.severe("Exception d'init SAM" + ex.toString());
            AuthException ae = new AuthException();
            ae.initCause(ex);
            throw ae;
        }
    }

    @Override
View Full Code Here

                response.setStatus(HttpServletResponse.SC_TEMPORARY_REDIRECT);

            } catch (Exception e) {
                LOGGER.warning("error_redirecting_to " + url);
                AuthException ae = new AuthException();
                ae.initCause(e);
                throw ae;
            }
        }
        @Override
        public void cleanSubject
View Full Code Here

                lc.logout();


            } catch (LoginException ex) {
                AuthException ae = new AuthException();
                ae.initCause(ex);


                throw ae;

View Full Code Here

            response.setStatus(HttpServletResponse.SC_MOVED_TEMPORARILY);
            response.sendRedirect(response.encodeRedirectURL(url));
        } catch (IOException ioe) {
            LOGGER.log(Level.WARNING, "jmac.servlet_redirect_failed", ioe);
            AuthException ae = new AuthException();
            ae.initCause(ioe);
            throw ae;
        }
        return AuthStatus.SEND_CONTINUE;
    }
View Full Code Here

            try {
                RestUtil.initialize(null);
                rd.forward(request, response);
            } catch (Exception ex) {
                AuthException ae = new AuthException();
                ae.initCause(ex);
                throw ae;
            }
            return AuthStatus.SEND_CONTINUE;
        }
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.