[jboss-svn-commits] JBL Code SVN: r21468 - labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Aug 12 08:50:50 EDT 2008


Author: beve
Date: 2008-08-12 08:50:50 -0400 (Tue, 12 Aug 2008)
New Revision: 21468

Removed:
   labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Login.java
Log:
No longer used.


Deleted: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Login.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Login.java	2008-08-12 12:48:47 UTC (rev 21467)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Login.java	2008-08-12 12:50:50 UTC (rev 21468)
@@ -1,104 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
- * LLC, and individual contributors by the @authors tag. See the copyright.txt
- * in the distribution for a full listing of individual contributors.
- * 
- * This is free software; you can redistribute it and/or modify it under the
- * terms of the GNU Lesser General Public License as published by the Free
- * Software Foundation; either version 2.1 of the License, or (at your option)
- * any later version.
- * 
- * This software is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
- * details.
- * 
- * You should have received a copy of the GNU Lesser General Public License
- * along with this software; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
- * site: http://www.fsf.org.
- */
-package org.jboss.soa.esb.samples.quickstart.opensso;
-
-import java.io.BufferedReader;
-import java.io.InputStreamReader;
-import java.io.IOException;
-import org.jboss.soa.esb.listeners.message.MessageDeliverException;
-import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.message.format.MessageFactory;
-import org.jboss.soa.esb.message.format.MessageType;
-
-import org.jboss.soa.esb.services.security.SecurityService;
-import org.jboss.soa.esb.services.security.TestPrincipal;
-import org.jboss.soa.esb.services.security.auth.AuthenticationRequest;
-import org.jboss.soa.esb.services.security.auth.AuthenticationRequestImpl;
-import org.jboss.soa.esb.client.ServiceInvoker;
-import java.util.HashSet;
-import java.util.Set;
-import javax.security.auth.callback.Callback;
-import javax.security.auth.callback.CallbackHandler;
-
-/**
- * This class mimics a gateway passing security information
- * to a secured esb serivce.
- * 
- * @author <a href="mailto:dbevenius at redhat.com">Daniel Bevenius</a>
- *
- */
-public class Login
-{
-	static
-	{
-        System.setProperty("javax.xml.registry.ConnectionFactoryClass","org.apache.ws.scout.registry.ConnectionFactoryImpl");
-	}
-	
-	/**
-	 * 
-	 * @param args
-	 * 			args[0] = organization/realm name
-	 * 			args[1] = module name
-	 * 			args[2] = locale
-	 * 			args[2] = username
-	 * 			args[4] = password
-	 */
-	public static void main(String[] args)
-	{
-		String orgName = args[0];
-		String moduleName = args[1];
-		String locale = args[2];
-		String username = args[3];
-		String password = args[4];
-		
-		System.out.println("Realm :" + orgName);
-		System.out.println("Login module name : " + moduleName);
-		System.out.println("Login locale : " + locale);
-		System.out.println("Username : " + username);
-		System.out.println("Password : " + password);
-    		
-    	//	create principal/username and  credential/password		
-    	TestPrincipal principal = new TestPrincipal(username);
-    	Set<String> credentials = new HashSet<String>();
-    	credentials.add(password);
-    	
-    	Message esbMessage = MessageFactory.getInstance().getMessage();
-    	
-    	//	create an authentication request and add to message
-    	AuthenticationRequest authRequest = new AuthenticationRequestImpl.Builder(principal, credentials).bulid();
-    	esbMessage.getProperties().setProperty(SecurityService.AUTH_REQUEST, authRequest);
-    	
-    	esbMessage.getBody().add("OpenSSO quickstart body");
-        	
-    	//	send message to esb-aware service
-		try
-		{
-            ServiceInvoker invoker = new ServiceInvoker("OpenSSO", "SimpleListenerSecured");
-            invoker.deliverAsync(esbMessage);
-		}
-		catch(MessageDeliverException e)
-		{
-			e.printStackTrace();
-		}
-        
-		System.exit(0);
-	}
-}




More information about the jboss-svn-commits mailing list