Module org.elasticsearch.security
Class NativeRealm
java.lang.Object
org.elasticsearch.xpack.core.security.authc.Realm
org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm
org.elasticsearch.xpack.security.authc.esnative.NativeRealm
- All Implemented Interfaces:
Comparable<Realm>,CachingRealm
User/password realm that is backed by an Elasticsearch index
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.security.authc.Realm
Realm.Factory -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionNativeRealm(RealmConfig config, NativeUsersStore usersStore, ThreadPool threadPool) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoAuthenticate(UsernamePasswordToken token, ActionListener<AuthenticationResult<User>> listener) protected voiddoLookupUser(String username, ActionListener<User> listener) voidonSecurityIndexStateChange(SecurityIndexManager.State previousState, SecurityIndexManager.State currentState) voidusageStats(ActionListener<Map<String, Object>> listener) Methods inherited from class org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm
authenticate, expire, expireAll, getCacheSize, handleCachedAuthentication, lookupUser, supports, tokenMethods 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
-
Constructor Details
-
NativeRealm
-
-
Method Details
-
doLookupUser
- Specified by:
doLookupUserin classCachingUsernamePasswordRealm
-
doAuthenticate
protected void doAuthenticate(UsernamePasswordToken token, ActionListener<AuthenticationResult<User>> listener) - Specified by:
doAuthenticatein classCachingUsernamePasswordRealm
-
onSecurityIndexStateChange
public void onSecurityIndexStateChange(SecurityIndexManager.State previousState, SecurityIndexManager.State currentState) -
usageStats
- Overrides:
usageStatsin classCachingUsernamePasswordRealm
-