Lines Matching defs:SocketPermission

50  * A SocketPermission consists of a
69 * For example, you can construct a SocketPermission instance
74 * sp = new SocketPermission("[" + hostAddress + "]:" + port, action);
76 * sp = new SocketPermission(hostAddress + ":" + port, action);
82 * sp = new SocketPermission(host + ":" + port, action);
109 * p1 = new SocketPermission("puffin.eng.sun.com:7777", "connect,accept");
118 * p2 = new SocketPermission("localhost:1024-", "accept,connect,listen");
131 * @see SocketPermission
140 public final class SocketPermission extends Permission
209 // true if this SocketPermission represents an invalid/unknown host
218 // true if this SocketPermission represents a hostname
245 * Creates a new SocketPermission object with the specified actions.
259 * Examples of SocketPermission instantiation are the following:
261 * nr = new SocketPermission("www.catalog.com", "connect");
262 * nr = new SocketPermission("www.sun.com:80", "connect");
263 * nr = new SocketPermission("*.sun.com", "connect");
264 * nr = new SocketPermission("*.edu", "resolve");
265 * nr = new SocketPermission("204.160.241.0", "connect");
266 * nr = new SocketPermission("localhost:1024-65535", "listen");
267 * nr = new SocketPermission("204.160.241.0:1024-65535", "connect");
274 public SocketPermission(String host, String action) {
281 SocketPermission(String host, int mask) {
365 * Initialize the SocketPermission object. We don't do any DNS lookups
785 * <li> <i>p</i> is an instanceof SocketPermission,<p>
816 if (!(p instanceof SocketPermission))
822 SocketPermission that = (SocketPermission) p;
834 * <li> Checks that "p" is an instanceof a SocketPermission
852 boolean impliesIgnoreMask(SocketPermission that) {
953 private boolean compareHostnames(SocketPermission that) {
966 * Checks two SocketPermission objects for equality.
970 * @return true if <i>obj</i> is a SocketPermission, and has the
972 * SocketPermission object. However, port range will be ignored
979 if (! (obj instanceof SocketPermission))
982 SocketPermission that = (SocketPermission) obj;
1037 * If this SocketPermission was initialized with an IP address
1126 * Returns a new PermissionCollection object for storing SocketPermission
1129 * SocketPermission objects must be stored in a manner that allows them
1142 * WriteObject is called to save the state of the SocketPermission
1157 * readObject is called to restore the state of the SocketPermission from
1187 SocketPermission this_ = new SocketPermission(args[0], "connect");
1188 SocketPermission that_ = new SocketPermission(args[1], "connect");
1199 nps.add(new SocketPermission("www-leland.stanford.edu","connect"));
1200 nps.add(new SocketPermission("www-sun.com","connect"));
1246 * SocketPermission
1254 if (! (permission instanceof SocketPermission))
1280 if (! (permission instanceof SocketPermission))
1283 SocketPermission np = (SocketPermission) permission;
1293 SocketPermission x = (SocketPermission) perms.get(i);
1307 * Returns an enumeration of all the SocketPermission objects in the
1310 * @return an enumeration of all the SocketPermission objects.