Class ReservedRealm
java.lang.Object
org.elasticsearch.xpack.core.security.authc.Realm
org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm
org.elasticsearch.xpack.security.authc.esnative.ReservedRealm
- All Implemented Interfaces:
Comparable<org.elasticsearch.xpack.core.security.authc.Realm>,org.elasticsearch.xpack.core.security.authc.support.CachingRealm
A realm for predefined users. These users can only be modified in terms of changing their passwords; no other modifications are allowed.
This realm is always enabled.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.security.authc.Realm
org.elasticsearch.xpack.core.security.authc.Realm.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.settings.SecureString>static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.settings.SecureString>static final Stringstatic final StringFields inherited from class org.elasticsearch.xpack.core.security.authc.Realm
config, logger -
Constructor Summary
ConstructorsConstructorDescriptionReservedRealm(org.elasticsearch.env.Environment env, org.elasticsearch.common.settings.Settings settings, NativeUsersStore nativeUsersStore, org.elasticsearch.xpack.core.security.user.AnonymousUser anonymousUser, org.elasticsearch.threadpool.ThreadPool threadPool) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSettings(List<org.elasticsearch.common.settings.Setting<?>> settingsList) protected voiddoAuthenticate(org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken token, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authc.AuthenticationResult<org.elasticsearch.xpack.core.security.user.User>> listener) protected voiddoLookupUser(String username, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.user.User> listener) voidusers(org.elasticsearch.action.ActionListener<Collection<org.elasticsearch.xpack.core.security.user.User>> listener) Methods inherited from class org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm
authenticate, expire, expireAll, getCacheSize, handleCachedAuthentication, lookupUser, supports, token, usageStatsMethods inherited from class org.elasticsearch.xpack.core.security.authc.Realm
compareTo, domain, getAuthenticationFailureHeaders, initialize, name, order, toString, typeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.core.security.authc.support.CachingRealm
name
-
Field Details
-
TYPE
- See Also:
-
NAME
- See Also:
-
BOOTSTRAP_ELASTIC_PASSWORD
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.settings.SecureString> BOOTSTRAP_ELASTIC_PASSWORD -
AUTOCONFIG_ELASTIC_PASSWORD_HASH
public static final org.elasticsearch.common.settings.Setting<org.elasticsearch.common.settings.SecureString> AUTOCONFIG_ELASTIC_PASSWORD_HASH
-
-
Constructor Details
-
ReservedRealm
public ReservedRealm(org.elasticsearch.env.Environment env, org.elasticsearch.common.settings.Settings settings, NativeUsersStore nativeUsersStore, org.elasticsearch.xpack.core.security.user.AnonymousUser anonymousUser, org.elasticsearch.threadpool.ThreadPool threadPool)
-
-
Method Details
-
doAuthenticate
protected void doAuthenticate(org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken token, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authc.AuthenticationResult<org.elasticsearch.xpack.core.security.user.User>> listener) - Specified by:
doAuthenticatein classCachingUsernamePasswordRealm
-
doLookupUser
protected void doLookupUser(String username, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.user.User> listener) - Specified by:
doLookupUserin classCachingUsernamePasswordRealm
-
users
public void users(org.elasticsearch.action.ActionListener<Collection<org.elasticsearch.xpack.core.security.user.User>> listener) -
addSettings
-