Class SecuredConfigFileAccessPermission

java.lang.Object
java.security.Permission
java.security.BasicPermission
org.elasticsearch.SecuredConfigFileAccessPermission
All Implemented Interfaces:
Serializable, Guard

public class SecuredConfigFileAccessPermission extends BasicPermission
A permission granted to ensure secured access to a file in the config directory.

By granting this permission with a file relative to the config directory, the file is secured from general access by Elasticsearch and other Elasticsearch plugins. All code that does not have a secured permission on the same file will be denied all read/write access to that file. Note that you also need to wrap any access to secured files in an AccessController.doPrivileged() block as Elasticsearch itself is denied access to files secured by plugins.

See Also:
  • Constructor Details

    • SecuredConfigFileAccessPermission

      public SecuredConfigFileAccessPermission(String path)