javacommons/gcfprotocols/socket/socket/javasrc/com/nokia/mj/impl/gcf/protocol/socket/SocketPermissionImpl.java
branchRCL_3
changeset 83 26b2b12093af
parent 71 d5e927d5853b
--- a/javacommons/gcfprotocols/socket/socket/javasrc/com/nokia/mj/impl/gcf/protocol/socket/SocketPermissionImpl.java	Wed Sep 15 12:05:25 2010 +0300
+++ b/javacommons/gcfprotocols/socket/socket/javasrc/com/nokia/mj/impl/gcf/protocol/socket/SocketPermissionImpl.java	Wed Oct 13 14:23:59 2010 +0300
@@ -25,13 +25,6 @@
 
 public class SocketPermissionImpl extends PermissionBase
 {
-    /**
-     * Constants for identifying the target/uri of connection: client or server
-     */
-     static String CLIENT_TARGET = "socket://*";
-     static String SERVER_TARGET = "socket://";
-
-     private String iTarget;
 
     /**
      * Returns the question (as localized text) associated with the security
@@ -43,7 +36,6 @@
     public SocketPermissionImpl(String uri)
     {
         super(uri);
-        iTarget = uri;
     }
 
     public String getSecurityPromptQuestion(int aInteractionMode)
@@ -63,10 +55,6 @@
 
     public String toString()
     {
-        if (SERVER_TARGET.equals(iTarget))
-        {
-            return "javax.microedition.io.Connector.serversocket";
-        }
         return "javax.microedition.io.Connector.socket";
     }
 
@@ -74,12 +62,7 @@
     {
         if (p instanceof SocketPermissionImpl)
         {
-            SocketPermissionImpl o = (SocketPermissionImpl)p;
-            if ((iTarget != null && iTarget.equals(o.getTarget()))
-                || (iTarget == null && o.getTarget() == null))
-            {
-                return true;
-            }
+            return true;
         }
         return false;
     }
@@ -104,8 +87,4 @@
         return null;
     }
 
-    String getTarget()
-    {
-        return iTarget;
-    }
 }
\ No newline at end of file