Examples of AuthStatus


Examples of javax.security.auth.message.AuthStatus

            }
            ServerAuthContext sAC =
                    helper.getServerAuthContext(messageInfo,
                    null); // null serviceSubject
            if (sAC != null) {
                AuthStatus authStatus =
                        sAC.validateRequest(messageInfo, subject,
                        null); // null serviceSubject
                rvalue = AuthStatus.SUCCESS.equals(authStatus);

                if (rvalue) { // cache it only if validateRequest = true
View Full Code Here

Examples of org.molgenis.framework.server.AuthStatus

    Database db = req.getDatabase();

    try
    {

      AuthStatus authStatus = MolgenisServiceAuthenticationHelper.handleAuthentication(req, out);

      if (!authStatus.isShowApi())
      {
        out.println("<html><body>");
        out.println(authStatus.getPrintMe());
        out.println("</body></html>");
      }
      else
      {
        // if no type selected: show data type choice
        if (req.getString(INPUT_DATATYPE) == null)
        {
          out.println("<html><body>");
          authStatus.getPrintMe();
          if (req.getDatabase().getLogin().isAuthenticated())
          {
            out.println(MolgenisServiceAuthenticationHelper.displayLogoutForm());
          }
          showDataTypeChoice(out, req);
          out.println("</body></html>");
        }
        // if no data provided, show csv input form
        else if (req.get(INPUT_DATA) == null && req.get(INPUT_FILE) == null)
        {
          out.println("<html><body>");
          authStatus.getPrintMe();
          if (req.getDatabase().getLogin().isAuthenticated())
          {
            out.println(MolgenisServiceAuthenticationHelper.displayLogoutForm());
          }
          showCsvInputForm(out, req);
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.