java.lang.Object | ||
↳ | java.security.Permission | |
↳ | com.sun.rmi.rmid.ExecPermission |
The ExecPermission class represents permission for rmid to execute a specific command to launch an activation group. An ExecPermission consists of a pathname of a command to launch an activation group.
Pathname is the pathname of the file or directory to grant rmid
execute permission. A pathname that ends in "/*" (where "/" is
the file separator character, File.separatorChar
) indicates
all the files and directories contained in that directory. A pathname
that ends with "/-" indicates (recursively) all files
and subdirectories contained in that directory. A pathname consisting of
the special token "<<ALL FILES>>" matches
Note: A pathname consisting of a single "*" indicates all the files in the current directory, while a pathname consisting of a single "-" indicates all the files in the current directory and (recursively) all files and subdirectories contained in the current directory.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new ExecPermission object with the specified path.
| |||||||||||
Creates a new ExecPermission object with the specified path.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks two ExecPermission objects for equality.
| |||||||||||
Returns the canonical string representation of the actions.
| |||||||||||
Returns the hash code value for this object.
| |||||||||||
Checks if this ExecPermission object "implies" the specified permission.
| |||||||||||
Returns a new PermissionCollection object for storing
ExecPermission objects.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new ExecPermission object with the specified path. path is the pathname of a file or directory.
A pathname that ends in "/*" (where "/" is
the file separator character, File.separatorChar
) indicates
a directory and all the files contained in that directory. A pathname
that ends with "/-" indicates a directory and (recursively) all files
and subdirectories contained in that directory. The special pathname
"<<ALL FILES>>" matches all files.
A pathname consisting of a single "*" indicates all the files in the current directory, while a pathname consisting of a single "-" indicates all the files in the current directory and (recursively) all files and subdirectories contained in the current directory.
path | the pathname of the file/directory. |
---|
Creates a new ExecPermission object with the specified path. path is the pathname of a file or directory.
A pathname that ends in "/*" (where "/" is
the file separator character, File.separatorChar
) indicates
a directory and all the files contained in that directory. A pathname
that ends with "/-" indicates a directory and (recursively) all files
and subdirectories contained in that directory. The special pathname
"<<ALL FILES>>" matches all files.
A pathname consisting of a single "*" indicates all the files in the current directory, while a pathname consisting of a single "-" indicates all the files in the current directory and (recursively) all files and subdirectories contained in the current directory.
path | the pathname of the file/directory. |
---|---|
actions | the action string (unused) |
Checks two ExecPermission objects for equality. Checks that obj's class is the same as this object's class and has the same name as this object.
obj | the object we are testing for equality with this object. |
---|
Returns the canonical string representation of the actions.
Returns the hash code value for this object.
Checks if this ExecPermission object "implies" the specified permission.
More specifically, this method returns true if:
and
p | the permission to check against. |
---|
Returns a new PermissionCollection object for storing ExecPermission objects.
A ExecPermissionCollection stores a collection of ExecPermission permissions.
ExecPermission objects must be stored in a manner that allows
them to be inserted in any order, but that also enables the
PermissionCollection implies
method
to be implemented in an efficient (and consistent) manner.