158 </tbody>
159 * </table>
160 *
161 * @implNote
162 * Implementations may define additional target names, but should use naming
163 * conventions such as reverse domain name notation to avoid name clashes.
164 *
165 * @see java.security.BasicPermission
166 * @see java.security.Permission
167 * @see java.security.Permissions
168 * @see java.security.PermissionCollection
169 * @see java.lang.SecurityManager
170 *
171 *
172 * @author Marianne Mueller
173 * @author Roland Schemers
174 * @since 1.2
175 */
176
177 public final class NetPermission extends BasicPermission {
178 private static final long serialVersionUID = -8343910153355041693L;
179
180 /**
181 * Creates a new NetPermission with the specified name.
182 * The name is the symbolic name of the NetPermission, such as
183 * "setDefaultAuthenticator", etc. An asterisk
184 * may appear at the end of the name, following a ".", or by itself, to
185 * signify a wildcard match.
186 *
187 * @param name the name of the NetPermission.
188 *
189 * @throws NullPointerException if {@code name} is {@code null}.
190 * @throws IllegalArgumentException if {@code name} is empty.
191 */
192
193 public NetPermission(String name)
194 {
195 super(name);
196 }
197
|
158 </tbody>
159 * </table>
160 *
161 * @implNote
162 * Implementations may define additional target names, but should use naming
163 * conventions such as reverse domain name notation to avoid name clashes.
164 *
165 * @see java.security.BasicPermission
166 * @see java.security.Permission
167 * @see java.security.Permissions
168 * @see java.security.PermissionCollection
169 * @see java.lang.SecurityManager
170 *
171 *
172 * @author Marianne Mueller
173 * @author Roland Schemers
174 * @since 1.2
175 */
176
177 public final class NetPermission extends BasicPermission {
178 @java.io.Serial
179 private static final long serialVersionUID = -8343910153355041693L;
180
181 /**
182 * Creates a new NetPermission with the specified name.
183 * The name is the symbolic name of the NetPermission, such as
184 * "setDefaultAuthenticator", etc. An asterisk
185 * may appear at the end of the name, following a ".", or by itself, to
186 * signify a wildcard match.
187 *
188 * @param name the name of the NetPermission.
189 *
190 * @throws NullPointerException if {@code name} is {@code null}.
191 * @throws IllegalArgumentException if {@code name} is empty.
192 */
193
194 public NetPermission(String name)
195 {
196 super(name);
197 }
198
|