SecurityManager.checkRead

SecurityManager.checkRead

Class Overview | Class Members | This Package | All Packages

Syntax 1
public void checkRead( FileDescriptor fd )
Parameters
fd
the system-dependent file descriptor.
Description
Throws a SecurityException if the calling thread is not allowed to read from the specified file descriptor.

The checkRead method for class SecurityManager always throws a SecurityException.

Exceptions
SecurityException if the caller does not have permission to access the specified file descriptor.
See Also
FileDescriptor



Syntax 2
public void checkRead( String file )
Parameters
file
the system-dependent file name.
Description
Throws a SecurityException if the calling thread is not allowed to read the file specified by the string argument.

The checkRead method for class SecurityManager always throws a SecurityException.

Exceptions
SecurityException if the caller does not have permission to access the specified file.



Syntax 3
public void checkRead( String file, Object context )
Parameters
file
the system-dependent filename.
context
a system-dependent security context.
Description
Throws a SecurityException if the specified security context is not allowed to read the file specified by the string argument. The context must be a security context returned by a previous call to getSecurityContext.

The checkRead method for class SecurityManager always throws a SecurityException.

Exceptions
SecurityException if the specified security context does not have permission to read the specified file.
See Also
getSecurityContext