FilePermission

  • FilePermission is a legacy security class and should not be used in new code.

  • It provides a way to represent permissions for file system operations, like reading, writing, and executing.

  • The class defines a constructor to create FilePermission objects with a specific file path and allowed actions.

  • It includes methods like getActions to retrieve the allowed actions and implies to check if one FilePermission implies another.

public final class FilePermission extends Permission
implements Serializable

Legacy security code; do not use.

Public Constructor Summary

FilePermission(String path, String actions)

Public Method Summary

String
boolean

Inherited Method Summary

Public Constructors

public FilePermission (String path, String actions)

Parameters
path
actions

Public Methods

public String getActions ()

public boolean implies (Permission p)

Parameters
p