Class FileUserPasswdStore
java.lang.Object
org.elasticsearch.xpack.security.authc.file.FileUserPasswdStore
-
Constructor Summary
ConstructorsConstructorDescriptionFileUserPasswdStore(org.elasticsearch.xpack.core.security.authc.RealmConfig config, org.elasticsearch.watcher.ResourceWatcherService watcherService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Runnable listener) parseFile(Path path, org.apache.logging.log4j.Logger logger, org.elasticsearch.common.settings.Settings settings) Parses the users file.static PathresolveFile(org.elasticsearch.env.Environment env) booleanuserExists(String username) intorg.elasticsearch.xpack.core.security.authc.AuthenticationResult<org.elasticsearch.xpack.core.security.user.User>verifyPassword(String username, org.elasticsearch.common.settings.SecureString password, Supplier<org.elasticsearch.xpack.core.security.user.User> user) static void
-
Constructor Details
-
FileUserPasswdStore
public FileUserPasswdStore(org.elasticsearch.xpack.core.security.authc.RealmConfig config, org.elasticsearch.watcher.ResourceWatcherService watcherService)
-
-
Method Details
-
addListener
-
usersCount
public int usersCount() -
verifyPassword
-
userExists
-
resolveFile
-
parseFile
public static Map<String,char[]> parseFile(Path path, @Nullable org.apache.logging.log4j.Logger logger, org.elasticsearch.common.settings.Settings settings) Parses the users file. Returnsnull, if theusersfile does not exist. -
writeFile
-