Module org.elasticsearch.security
Class FileServiceAccountTokenStore
java.lang.Object
org.elasticsearch.xpack.security.authc.service.CachingServiceAccountTokenStore
org.elasticsearch.xpack.security.authc.service.FileServiceAccountTokenStore
- All Implemented Interfaces:
NodeLocalServiceAccountTokenStore,ServiceAccountTokenStore,CacheInvalidatorRegistry.CacheInvalidator
public class FileServiceAccountTokenStore
extends CachingServiceAccountTokenStore
implements NodeLocalServiceAccountTokenStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xpack.core.security.authc.service.ServiceAccountTokenStore
ServiceAccountTokenStore.StoreAuthenticationResult -
Field Summary
Fields inherited from class org.elasticsearch.xpack.security.authc.service.CachingServiceAccountTokenStore
CACHE_HASH_ALGO_SETTING, CACHE_MAX_TOKENS_SETTING, CACHE_TTL_SETTING -
Constructor Summary
ConstructorsConstructorDescriptionFileServiceAccountTokenStore(Environment env, ResourceWatcherService resourceWatcherService, ThreadPool threadPool, ClusterService clusterService, CacheInvalidatorRegistry cacheInvalidatorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Runnable listener) voiddoAuthenticate(ServiceAccountToken token, ActionListener<ServiceAccountTokenStore.StoreAuthenticationResult> listener) booleanMethods inherited from class org.elasticsearch.xpack.security.authc.service.CachingServiceAccountTokenStore
authenticate, getSettings, getThreadPool, invalidate, invalidateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.core.security.authc.service.ServiceAccountTokenStore
authenticate
-
Constructor Details
-
FileServiceAccountTokenStore
public FileServiceAccountTokenStore(Environment env, ResourceWatcherService resourceWatcherService, ThreadPool threadPool, ClusterService clusterService, CacheInvalidatorRegistry cacheInvalidatorRegistry)
-
-
Method Details
-
doAuthenticate
public void doAuthenticate(ServiceAccountToken token, ActionListener<ServiceAccountTokenStore.StoreAuthenticationResult> listener) -
getTokenSource
-
findNodeLocalTokensFor
- Specified by:
findNodeLocalTokensForin interfaceNodeLocalServiceAccountTokenStore
-
addListener
-
shouldClearOnSecurityIndexStateChange
public boolean shouldClearOnSecurityIndexStateChange()- Specified by:
shouldClearOnSecurityIndexStateChangein interfaceCacheInvalidatorRegistry.CacheInvalidator
-