Examples of UDDISecurityPortType


Examples of org.uddi.v3_service.UDDISecurityPortType

    @Override
    public UDDISecurityPortType getUDDISecurityService(final String endpointURL)
            throws TransportException
    {
        final UDDISecurityPortType currentSecurityService = securityService.get() ;
        if (currentSecurityService != null)
        {
            return currentSecurityService ;
        }
        final String securityURL = getUDDINode(managerName, nodeName).getSecurityUrl() ;
        final UDDISecurityPortType newSecurityService = lookupService(jndiEnv, securityURL) ;
        if (securityService.compareAndSet(null, newSecurityService))
        {
            return newSecurityService ;
        }
        else
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

    @Override
    public UDDISecurityPortType getUDDISecurityService(final String endpointURL)
            throws TransportException
    {
        final UDDISecurityPortType current = uddiSecurityPortTypeRef.get() ;
        if (current != null)
        {
            return current ;
        }
        final String securityUrl ;
        if (endpointURL == null)
        {
            try
            {
                final UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName) ;
                securityUrl = manager.getClientConfig().getUDDINode(nodeName).getSecurityUrl() ;
            }
            catch (final ConfigurationException ce)
            {
                throw new TransportException("Could not discover securityUrl for node " + nodeName, ce) ;
            }
        }
        else
        {
            securityUrl = endpointURL ;
        }
        final Object delegatePortType = createDelegate(securityUrl) ;
        final InvocationHandler handler = new TaskHandler(delegatePortType) ;
        final UDDISecurityPortType uddiSecurityPortType = (UDDISecurityPortType) Proxy.newProxyInstance(classLoader,
            new Class[] {UDDISecurityPortType.class}, handler) ;
        if (uddiSecurityPortTypeRef.compareAndSet(null, uddiSecurityPortType))
        {
            return uddiSecurityPortType ;
        }
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

                manager.start();

                logger.debug("Getting auth tokens..");
                try {
                        Transport transport = manager.getTransport();
                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                        authInfoSam = TckSecurity.getAuthToken(security, TckPublisher.getSamPublisherId(), TckPublisher.getSamPassword());
                        authInfoMary = TckSecurity.getAuthToken(security, TckPublisher.getMaryPublisherId(), TckPublisher.getMaryPassword());
                        //Assert.assertNotNull(authInfoJoe);
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

                manager.start();
                logger.debug("Getting auth token for user riftsaw/riftsaw..");
                try {
                        Transport transport = manager.getTransport();

                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoRiftSaw = TckSecurity.getAuthToken(security, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                        //Assert.assertNotNull(authInfoRiftSaw);

                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

                logger.debug("Getting auth token for user riftsaw/riftsaw..");
                try {
                        Transport transport = manager.getTransport();

                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoRiftSaw = TckSecurity.getAuthToken(security, TckPublisher.getRiftSawPublisherId(), TckPublisher.getRiftSawPassword());
                        //Assert.assertNotNull(authInfoRiftSaw);

                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

  }
 
  // This setup needs to be done once, either using the console or using code like this
  private void setupJoePublisher(UDDIClerk clerk) throws DispositionReportFaultMessage, RemoteException, ConfigurationException, TransportException {
   
    UDDISecurityPortType security = uddiClient.getTransport("default").getUDDISecurityService();
   
    //login as root so we can create joe publisher
    GetAuthToken getAuthTokenRoot = new GetAuthToken();
    getAuthTokenRoot.setUserID("root");
    getAuthTokenRoot.setCred("");
    // Making API call that retrieves the authentication token for the 'root' user.
    AuthToken rootAuthToken = security.getAuthToken(getAuthTokenRoot);
    System.out.println ("root AUTHTOKEN = " + rootAuthToken.getAuthInfo());
    //Creating joe publisher
    JUDDIApiPortType juddiApi = uddiClient.getTransport("default").getJUDDIApiService();
    Publisher p = new Publisher();
    p.setAuthorizedName("joepublisher");
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

                logger.debug("Getting auth tokens..");
                try {

                        Transport transport = manager.getTransport();
                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());


                        UDDISubscriptionPortType subscription = transport.getUDDISubscriptionService();
                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

                manager.start();

                logger.debug("Getting auth tokens..");
                try {
                        Transport transport = manager.getTransport();
                        UDDISecurityPortType security = transport.getUDDISecurityService();
                        authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
                        //Assert.assertNotNull(authInfoJoe);
                       
                        UDDIPublicationPortType publication = transport.getUDDIPublishService();
                        inquiry = transport.getUDDIInquiryService();
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

    Registry.start();
    logger.debug("Getting auth token..");
    try {
      api010.saveJoePublisher();
      authInfoJoe = TckSecurity.getAuthToken(new UDDISecurityImpl(), TckPublisher.getJoePublisherId(),  TckPublisher.getJoePassword());
      UDDISecurityPortType security      = new UDDISecurityImpl();
      String authInfoUDDI  = TckSecurity.getAuthToken(security, TckPublisher.getUDDIPublisherId(),  TckPublisher.getUDDIPassword());
      tckTModel.saveUDDIPublisherTmodel(authInfoUDDI);
      tckTModel.saveTModels(authInfoUDDI, TckTModel.TMODELS_XML);
    } catch (RemoteException e) {
      logger.error(e.getMessage(), e);
View Full Code Here

Examples of org.uddi.v3_service.UDDISecurityPortType

    Registry.start();
    logger.debug("Getting auth token..");
    try {
      api010.saveJoePublisher();
      api010.saveSamSyndicator();
      UDDISecurityPortType security      = new UDDISecurityImpl();
      authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.getJoePublisherId(),  TckPublisher.getJoePassword());
      authInfoSam = TckSecurity.getAuthToken(security, TckPublisher.getSamPublisherId(),  TckPublisher.getSamPassword());
      authInfoMary = TckSecurity.getAuthToken(security, TckPublisher.getMaryPublisherId(),  TckPublisher.getMaryPassword());
    } catch (RemoteException e) {
      logger.error(e.getMessage(), e);
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.