Package com.google.api.explorer.client

Examples of com.google.api.explorer.client.AuthManager$AuthToken


                try {
                        org.uddi.api_v3.GetAuthToken r = new org.uddi.api_v3.GetAuthToken();
                        r.setCred(body.getCred());
                        r.setUserID(body.getUserID());
                        org.uddi.api_v3.AuthToken authToken = securityService.getAuthToken(r);
                        AuthToken ret = new AuthToken();
                        ret.setAuthInfo(authToken.getAuthInfo());
                        ret.setGeneric("2.0");
                        ret.setOperator(getNodeID());
                        return ret;
                } catch (DispositionReportFaultMessage ex) {
                        throw MapUDDIv3Tov2.MapException(ex, getNodeID());
                }
        }
View Full Code Here


            
             UDDISecurityPortType securityService = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             AuthToken authToken = securityService.getAuthToken(getAuthToken);
             System.out.println(authToken.getAuthInfo());
             Assert.assertNotNull(authToken);
           } else {
             Assert.fail();
           }
       } catch (Exception e) {
View Full Code Here

            
             UDDISecurityPortType securityService = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             AuthToken authToken = securityService.getAuthToken(getAuthToken);
             System.out.println(authToken.getAuthInfo());
             Assert.assertNotNull(authToken);
           } else {
             Assert.fail();
           }
       } catch (Exception e) {
View Full Code Here

        log("Could not obtain username, this session is invalid.");
        response.setSuccess(false);
        return response;
      } else {
        try {
          AuthToken authToken = login(username, password, session.getServletContext());
          response.setSuccess(true);
          response.setResponse(authToken.getAuthInfo());
          session.setAttribute("AuthToken", authToken.getAuthInfo());
          session.setAttribute("UserName", username);
         
            setClerkAuthenticationTokensInSession(username);
        } catch (Exception e) {
          log.error("Could not obtain token. " + e.getMessage(), e);
View Full Code Here

        Transport transport = WebHelper.getTransport(servletContext);
    UDDISecurityPortType securityService = transport.getUDDISecurityService();
    GetAuthToken getAuthToken = new GetAuthToken();
    getAuthToken.setUserID(username);
    getAuthToken.setCred(password);
    AuthToken authToken = securityService.getAuthToken(getAuthToken);
    log.info("User " + username + " obtained token from node=" + WebHelper.getUDDIHomeNode(servletContext).getName());
    return authToken;
  }
View Full Code Here

    for (UDDIClerk clerk : clerks.values()) {
      //only setting token for the clerks of the current user/publisher
      if (username.equals(clerk.getPublisher())) {
        try {
          if (session.getAttribute("token-" + clerk.getName())==null) {
            AuthToken clerkToken = login(clerk.getPublisher(), clerk.getPassword(), session.getServletContext());
            //set the clerkToken into the session
            session.setAttribute("token-" + clerk.getName(), clerkToken.getAuthInfo());
          }
        } catch (Exception e) {
          log.warn("Could not obtain authToken for clerk=" + clerk.getName());
        }
      }
View Full Code Here

                        for (String entityKey : entityKeyList) {
                          Publisher obj = em.find(org.apache.juddi.model.Publisher.class, entityKey);
                       
                          //get an authtoken for this publisher so that we can get its registeredInfo
                          UDDISecurityImpl security = new UDDISecurityImpl();
                          AuthToken authToken = security.getAuthToken(entityKey);
                         
                          GetRegisteredInfo r = new GetRegisteredInfo();
                          r.setAuthInfo(authToken.getAuthInfo());
                          r.setInfoSelection(InfoSelection.ALL);
                        
                          log.info("removing all businesses owned by publisher " + entityKey + ".");
                          UDDIPublicationImpl publish = new UDDIPublicationImpl();
                          RegisteredInfo registeredInfo = publish.getRegisteredInfo(r);
View Full Code Here

  @Test
  public void subscribe() throws Throwable
  {
    GetAuthenticationToken getAuthenticationToken = new GetAuthenticationToken();
    getAuthenticationToken.run();
    AuthToken authToken = getAuthenticationToken.getAuthenticationToken();
   
    RegisterBusiness registerBusiness = new RegisterBusiness(authToken, "Abonement");
    registerBusiness.run();
   
    //FindBusinessByName findBusinessByName = new FindBusinessByName(authToken,
View Full Code Here

  public void deleteService() throws Throwable
  {
    GetAuthenticationToken getAuthenticationToken = new GetAuthenticationToken();
    getAuthenticationToken.run();
 
    AuthToken authToken= getAuthenticationToken.getAuthenticationToken();
   
    FindServices findServices = new FindServices(authToken);
    findServices.run();
   
    System.out.println(name);
View Full Code Here

  {
    GetAuthenticationToken getAuthenticationToken = new GetAuthenticationToken();
    getAuthenticationToken.run();
   
    //Get the AuthToken
    AuthToken authToken= getAuthenticationToken.getAuthenticationToken();
   
    BusinessEntity businessEntity;
   
    // If there are no businesses in the data pool submit one with a rate of 100
    // to ensure that it will be entered
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.AuthManager$AuthToken

Copyright © 2018 www.massapicom. 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.