Module org.elasticsearch.security
Class FileUserRolesStore
java.lang.Object
org.elasticsearch.xpack.security.authc.file.FileUserRolesStore
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Runnable listener) Parses the users_roles file.static PathresolveFile(Environment env) String[]static voidAccepts a mapping of user -> list of roles
-
Method Details
-
addListener
-
roles
-
resolveFile
-
parseFile
public static Map<String,String[]> parseFile(Path path, @Nullable org.apache.logging.log4j.Logger logger) Parses the users_roles file. Returns @{code null} if theusers_rolesfile does not exist. The read file holds a mapping per line of the form "role -> users" while the returned map holds entries of the form "user -> roles". -
writeFile
Accepts a mapping of user -> list of roles
-