jdk/src/java.base/share/classes/java/net/SocketPermission.java
changeset 32649 2ee9017c7597
parent 31080 00a25f4c4d44
child 44760 61b03b960583
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   152     private static final long serialVersionUID = -7204263841984476862L;
   152     private static final long serialVersionUID = -7204263841984476862L;
   153 
   153 
   154     /**
   154     /**
   155      * Connect to host:port
   155      * Connect to host:port
   156      */
   156      */
   157     private final static int CONNECT    = 0x1;
   157     private static final int CONNECT    = 0x1;
   158 
   158 
   159     /**
   159     /**
   160      * Listen on host:port
   160      * Listen on host:port
   161      */
   161      */
   162     private final static int LISTEN     = 0x2;
   162     private static final int LISTEN     = 0x2;
   163 
   163 
   164     /**
   164     /**
   165      * Accept a connection from host:port
   165      * Accept a connection from host:port
   166      */
   166      */
   167     private final static int ACCEPT     = 0x4;
   167     private static final int ACCEPT     = 0x4;
   168 
   168 
   169     /**
   169     /**
   170      * Resolve DNS queries
   170      * Resolve DNS queries
   171      */
   171      */
   172     private final static int RESOLVE    = 0x8;
   172     private static final int RESOLVE    = 0x8;
   173 
   173 
   174     /**
   174     /**
   175      * No actions
   175      * No actions
   176      */
   176      */
   177     private final static int NONE               = 0x0;
   177     private static final int NONE               = 0x0;
   178 
   178 
   179     /**
   179     /**
   180      * All actions
   180      * All actions
   181      */
   181      */
   182     private final static int ALL        = CONNECT|LISTEN|ACCEPT|RESOLVE;
   182     private static final int ALL        = CONNECT|LISTEN|ACCEPT|RESOLVE;
   183 
   183 
   184     // various port constants
   184     // various port constants
   185     private static final int PORT_MIN = 0;
   185     private static final int PORT_MIN = 0;
   186     private static final int PORT_MAX = 65535;
   186     private static final int PORT_MAX = 65535;
   187     private static final int PRIV_PORT_MAX = 1023;
   187     private static final int PRIV_PORT_MAX = 1023;