Module org.elasticsearch.security
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<Realm>,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
Realm.Factory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Setting<SecureString> static final Setting<SecureString> static final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionReservedRealm(Environment env, Settings settings, NativeUsersStore nativeUsersStore, AnonymousUser anonymousUser, ThreadPool threadPool) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddSettings(List<Setting<?>> settingsList) protected voiddoAuthenticate(UsernamePasswordToken token, ActionListener<AuthenticationResult<User>> listener) protected voiddoLookupUser(String username, ActionListener<User> listener) voidusers(ActionListener<Collection<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, getAuthenticationFailureHeaders, initialize, name, order, realmRef, setRealmRef, 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
-
AUTOCONFIG_ELASTIC_PASSWORD_HASH
-
-
Constructor Details
-
ReservedRealm
public ReservedRealm(Environment env, Settings settings, NativeUsersStore nativeUsersStore, AnonymousUser anonymousUser, ThreadPool threadPool)
-
-
Method Details
-
doAuthenticate
protected void doAuthenticate(UsernamePasswordToken token, ActionListener<AuthenticationResult<User>> listener) - Specified by:
doAuthenticatein classCachingUsernamePasswordRealm
-
doLookupUser
- Specified by:
doLookupUserin classCachingUsernamePasswordRealm
-
users
-
addSettings
-