API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.net. SocketPermission View Source
Author(s)
Marianne Mueller
Roland Schemers
Since
Version
1.65 07/09/14
Serial
exclude
Hierarchy
 Object
      Permission
          SocketPermission
Implements
 Serializable
Subclasses
Description
publicfinal class SocketPermission
  This class represents access to a network via sockets.
See also:    Permissions SocketPermission
Constructors
pack-private SocketPermission (String host, int mask)
public SocketPermission (String host, String action)
  Creates a new SocketPermission object with the specified actions.
Methods
Hide/Show inherited methods
public void checkGuard (Object object) throws SecurityException [Inherited From Permission]
  Implements the guard interface for a permission.
public boolean equals (Object obj) [Specified in Permission]
  Checks two SocketPermission objects for equality.
public String getActions () [Specified in Permission]
  Returns the canonical string representation of the actions.
pack-private void getCanonName () throws UnknownHostException
attempt to get the fully qualified domain name
pack-private void getIP () throws UnknownHostException
  get IP addresses.
pack-private int getMask ()
  Return the current action mask.
publicfinal String getName () [Inherited From Permission]
  Returns the name of this Permission.
public int hashCode () [Specified in Permission]
  Returns the hash code value for this object.
public boolean implies (Permission p) [Specified in Permission]
  Checks if this socket permission object "implies" the specified permission.
pack-private boolean impliesIgnoreMask (SocketPermission that)
  Checks if the incoming Permission's action are a proper subset of the this object's actions.
public PermissionCollection newPermissionCollection () [Overrides Permission]
  Returns a new PermissionCollection object for storing SocketPermission objects.
public String toString () [Inherited From Permission]
  Returns a string describing this Permission.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar