[jboss-cvs] JBoss Messaging SVN: r3802 - in trunk/src/main/org/jboss/messaging/core: deployers and 3 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Feb 26 13:19:23 EST 2008


Author: timfox
Date: 2008-02-26 13:19:23 -0500 (Tue, 26 Feb 2008)
New Revision: 3802

Added:
   trunk/src/main/org/jboss/messaging/core/security/impl/NullAuthenticationManager.java
Removed:
   trunk/src/main/org/jboss/messaging/core/security/NullAuthenticationManager.java
Modified:
   trunk/src/main/org/jboss/messaging/core/channelfactory/ChannelFactory.java
   trunk/src/main/org/jboss/messaging/core/deployers/Deployable.java
   trunk/src/main/org/jboss/messaging/core/server/impl/MessagingServerImpl.java
Log:
A few more tweaks


Modified: trunk/src/main/org/jboss/messaging/core/channelfactory/ChannelFactory.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/channelfactory/ChannelFactory.java	2008-02-26 17:02:27 UTC (rev 3801)
+++ trunk/src/main/org/jboss/messaging/core/channelfactory/ChannelFactory.java	2008-02-26 18:19:23 UTC (rev 3802)
@@ -30,7 +30,9 @@
  * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
  * @version <tt>$Revision: 3124 $</tt>
  *
- * $Id: ChannelFactory.java 3124 2007-09-20 12:23:32Z timfox $
+ * 
+
+
  */
 public interface ChannelFactory
 {

Modified: trunk/src/main/org/jboss/messaging/core/deployers/Deployable.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/deployers/Deployable.java	2008-02-26 17:02:27 UTC (rev 3801)
+++ trunk/src/main/org/jboss/messaging/core/deployers/Deployable.java	2008-02-26 18:19:23 UTC (rev 3802)
@@ -14,7 +14,7 @@
     *
     * @return The name of the config file
     */
-   public String getConfigFileName();
+   String getConfigFileName();
 
    /**
     * Deploy the URL for the first time
@@ -22,7 +22,7 @@
     * @param url The resource todeploy
     * @throws Exception .
     */
-   public void deploy(URL url) throws Exception;
+   void deploy(URL url) throws Exception;
 
    /**
     * Redeploys a URL if changed
@@ -30,12 +30,12 @@
     * @param url The resource to redeploy
     * @throws Exception .
     */
-   public void redeploy(URL url) throws Exception;
+   void redeploy(URL url) throws Exception;
 
    /**
     * Undeploys a resource that has been removed
     * @param url The Resource that was deleted
     * @throws Exception .
     */
-   public void undeploy(URL url) throws Exception;
+   void undeploy(URL url) throws Exception;
 }

Deleted: trunk/src/main/org/jboss/messaging/core/security/NullAuthenticationManager.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/security/NullAuthenticationManager.java	2008-02-26 17:02:27 UTC (rev 3801)
+++ trunk/src/main/org/jboss/messaging/core/security/NullAuthenticationManager.java	2008-02-26 18:19:23 UTC (rev 3802)
@@ -1,84 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * 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.messaging.core.security;
-
-import java.security.Principal;
-import java.util.Map;
-import java.util.Set;
-
-import javax.security.auth.Subject;
-
-import org.jboss.security.RealmMapping;
-
-/**
- * This is an implementation of AuthenticationManager and RealmMapping to use when we run embedded. The one we use when in jBoss
- * is not available. currently this does not have any functionality. A user can
- * provide their own implementation if security is needed
- * @author <a href="ataylor at redhat.com">Andy Taylor</a>
- */
-public class NullAuthenticationManager implements org.jboss.security.AuthenticationManager, RealmMapping
-{
-	public String getSecurityDomain()
-	{
-		return "messaging";
-	}
-
-	public boolean isValid(Principal principal, Object object)
-	{
-		return true;
-	}
-
-	public boolean isValid(Principal principal, Object object, Subject subject)
-	{
-		return true;
-	}
-
-	public Subject getActiveSubject()
-	{
-		return null;
-	}
-
-	public Principal getPrincipal(Principal principal)
-	{
-		return null;
-	}
-
-	public boolean doesUserHaveRole(Principal principal, Set set)
-	{
-		return true;
-	}
-
-	public Set getUserRoles(Principal principal)
-	{
-		return null;
-	}
-
-	public boolean isValid(javax.security.auth.message.MessageInfo messageInfo, Subject subject, String string)
-	{
-		return false;  //To change body of implemented methods use File | Settings | File Templates.
-	}
-
-	public Principal getTargetPrincipal(Principal principal, Map<String, Object> map)
-	{
-		return null;  //To change body of implemented methods use File | Settings | File Templates.
-	}
-}

Copied: trunk/src/main/org/jboss/messaging/core/security/impl/NullAuthenticationManager.java (from rev 3799, trunk/src/main/org/jboss/messaging/core/security/NullAuthenticationManager.java)
===================================================================
--- trunk/src/main/org/jboss/messaging/core/security/impl/NullAuthenticationManager.java	                        (rev 0)
+++ trunk/src/main/org/jboss/messaging/core/security/impl/NullAuthenticationManager.java	2008-02-26 18:19:23 UTC (rev 3802)
@@ -0,0 +1,84 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * 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.messaging.core.security.impl;
+
+import java.security.Principal;
+import java.util.Map;
+import java.util.Set;
+
+import javax.security.auth.Subject;
+
+import org.jboss.security.RealmMapping;
+
+/**
+ * This is an implementation of AuthenticationManager and RealmMapping to use when we run embedded. The one we use when in jBoss
+ * is not available. currently this does not have any functionality. A user can
+ * provide their own implementation if security is needed
+ * @author <a href="ataylor at redhat.com">Andy Taylor</a>
+ */
+public class NullAuthenticationManager implements org.jboss.security.AuthenticationManager, RealmMapping
+{
+	public String getSecurityDomain()
+	{
+		return "messaging";
+	}
+
+	public boolean isValid(Principal principal, Object object)
+	{
+		return true;
+	}
+
+	public boolean isValid(Principal principal, Object object, Subject subject)
+	{
+		return true;
+	}
+
+	public Subject getActiveSubject()
+	{
+		return null;
+	}
+
+	public Principal getPrincipal(Principal principal)
+	{
+		return null;
+	}
+
+	public boolean doesUserHaveRole(Principal principal, Set set)
+	{
+		return true;
+	}
+
+	public Set getUserRoles(Principal principal)
+	{
+		return null;
+	}
+
+	public boolean isValid(javax.security.auth.message.MessageInfo messageInfo, Subject subject, String string)
+	{
+		return false;  //To change body of implemented methods use File | Settings | File Templates.
+	}
+
+	public Principal getTargetPrincipal(Principal principal, Map<String, Object> map)
+	{
+		return null;  //To change body of implemented methods use File | Settings | File Templates.
+	}
+}

Modified: trunk/src/main/org/jboss/messaging/core/server/impl/MessagingServerImpl.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/server/impl/MessagingServerImpl.java	2008-02-26 17:02:27 UTC (rev 3801)
+++ trunk/src/main/org/jboss/messaging/core/server/impl/MessagingServerImpl.java	2008-02-26 18:19:23 UTC (rev 3802)
@@ -40,9 +40,9 @@
 import org.jboss.messaging.core.remoting.impl.RemotingConfiguration;
 import org.jboss.messaging.core.remoting.impl.mina.MinaService;
 import org.jboss.messaging.core.remoting.impl.wireformat.CreateConnectionResponse;
-import org.jboss.messaging.core.security.NullAuthenticationManager;
 import org.jboss.messaging.core.security.Role;
 import org.jboss.messaging.core.security.SecurityStore;
+import org.jboss.messaging.core.security.impl.NullAuthenticationManager;
 import org.jboss.messaging.core.security.impl.SecurityStoreImpl;
 import org.jboss.messaging.core.server.Binding;
 import org.jboss.messaging.core.server.Configuration;




More information about the jboss-cvs-commits mailing list