Name
Net Permissions
Type
-
java.net.NetPermission
Name
There are three names associated with this class.
specifyStreamHandler
allows new stream handlers to
be installed into the URL class.
HTTP authentication (which is
not actually implemented by default Java implementations) requires
two permissions:
setDefaultAuthenticator
to install the authentication class
and
requestPasswordAuthentication
to complete the authentication.
Actions
None.
Examples
// Allow a stream handler to be installed permission java.net.NetPermission "specifyStreamHandler";
Get Java Security, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.