< prev index next >

src/java.base/share/classes/jdk/net/NetworkPermission.java

Print this page




  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.net;
  27 
  28 import java.security.BasicPermission;
  29 
  30 /**
  31  * Represents permission to access the extended networking capabilities
  32  * defined in the jdk.net package. These permissions contain a target
  33  * name, but no actions list. Callers either possess the permission or not.
  34  * <p>
  35  * The following targets are defined:
  36  * <p>
  37  * <table border=1 cellpadding=5 summary="permission target name,
  38  *  what the target allows,and associated risks">
  39  * <tr>
  40  *   <th>Permission Target Name</th>
  41  *   <th>What the Permission Allows</th>
  42  *   <th>Risks of Allowing this Permission</th>
  43  * </tr>
  44  * <tr>
  45  *   <td>setOption.SO_FLOW_SLA</td>
  46  *   <td>set the {@link ExtendedSocketOptions#SO_FLOW_SLA SO_FLOW_SLA} option
  47  *       on any socket that supports it</td>
  48  *   <td>allows caller to set a higher priority or bandwidth allocation
  49  *       to sockets it creates, than they might otherwise be allowed.</td>
  50  * </tr>
  51  * <tr>
  52  *   <td>getOption.SO_FLOW_SLA</td>
  53  *   <td>retrieve the {@link ExtendedSocketOptions#SO_FLOW_SLA SO_FLOW_SLA}
  54  *       setting from any socket that supports the option</td>
  55  *   <td>allows caller access to SLA information that it might not
  56  *       otherwise have</td>




  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package jdk.net;
  27 
  28 import java.security.BasicPermission;
  29 
  30 /**
  31  * Represents permission to access the extended networking capabilities
  32  * defined in the jdk.net package. These permissions contain a target
  33  * name, but no actions list. Callers either possess the permission or not.
  34  * <p>
  35  * The following targets are defined:
  36  *
  37  * <table border=1 cellpadding=5 summary="permission target name,
  38  *  what the target allows,and associated risks">
  39  * <tr>
  40  *   <th>Permission Target Name</th>
  41  *   <th>What the Permission Allows</th>
  42  *   <th>Risks of Allowing this Permission</th>
  43  * </tr>
  44  * <tr>
  45  *   <td>setOption.SO_FLOW_SLA</td>
  46  *   <td>set the {@link ExtendedSocketOptions#SO_FLOW_SLA SO_FLOW_SLA} option
  47  *       on any socket that supports it</td>
  48  *   <td>allows caller to set a higher priority or bandwidth allocation
  49  *       to sockets it creates, than they might otherwise be allowed.</td>
  50  * </tr>
  51  * <tr>
  52  *   <td>getOption.SO_FLOW_SLA</td>
  53  *   <td>retrieve the {@link ExtendedSocketOptions#SO_FLOW_SLA SO_FLOW_SLA}
  54  *       setting from any socket that supports the option</td>
  55  *   <td>allows caller access to SLA information that it might not
  56  *       otherwise have</td>


< prev index next >