Package org.apache.juddi.proxy

Examples of org.apache.juddi.proxy.RegistryProxy.discardAuthToken()


    String ret = null;
    try {
      token = proxy.getAuthToken(publisher, password);
      authInfo = token.getAuthInfo();
      ret = authInfo.getValue();
      proxy.discardAuthToken(authInfo);
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
    return ret;
View Full Code Here


      AuthToken authToken = registry.getAuthToken(userID,password);
      AuthInfo authInfo = authToken.getAuthInfo();
      System.out.println("AuthToken: "+authInfo.getValue());

      DispositionReport dispReport = registry.discardAuthToken(authInfo);
      Vector resultVector = dispReport.getResultVector();
      if (resultVector != null)
      {
        System.out.println("Discard: "+authInfo.getValue());
        Result result = (Result)resultVector.elementAt(0);
View Full Code Here

        int errNo = result.getErrno();
        System.out.println("Errno:   "+errNo);
      }

      System.out.println("Discard: "+authInfo.getValue());
      registry.discardAuthToken(authInfo);
      // the line above should throw a RegistryException
    }
    catch (RegistryException regex)
    {
      DispositionReport dispReport = regex.getDispositionReport();
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.