Module org.elasticsearch.security
Class FileAttributesChecker
java.lang.Object
org.elasticsearch.xpack.security.support.FileAttributesChecker
A utility for cli tools to capture file attributes
before writing files, and to warn if the permissions/group/owner changes.
-
Constructor Summary
ConstructorsConstructorDescriptionFileAttributesChecker(Path... paths) Create a checker for the given paths, which will warn to the given terminal if changes are made. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck(org.elasticsearch.cli.Terminal terminal) Check if attributes of the paths have changed, warning to the given terminal if they have.
-
Constructor Details
-
FileAttributesChecker
Create a checker for the given paths, which will warn to the given terminal if changes are made.- Throws:
IOException
-
-
Method Details
-
check
Check if attributes of the paths have changed, warning to the given terminal if they have.- Throws:
IOException
-