Class FileServiceAccountTokenStore
java.lang.Object
org.elasticsearch.xpack.security.authc.service.CachingServiceAccountTokenStore
org.elasticsearch.xpack.security.authc.service.FileServiceAccountTokenStore
- All Implemented Interfaces:
ServiceAccountTokenStore,CacheInvalidatorRegistry.CacheInvalidator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xpack.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(org.elasticsearch.env.Environment env, org.elasticsearch.watcher.ResourceWatcherService resourceWatcherService, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.cluster.service.ClusterService clusterService, CacheInvalidatorRegistry cacheInvalidatorRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(Runnable listener) voiddoAuthenticate(ServiceAccountToken token, org.elasticsearch.action.ActionListener<ServiceAccountTokenStore.StoreAuthenticationResult> listener) List<org.elasticsearch.xpack.core.security.action.service.TokenInfo>findTokensFor(ServiceAccount.ServiceAccountId accountId) org.elasticsearch.xpack.core.security.action.service.TokenInfo.TokenSourcebooleanMethods inherited from class org.elasticsearch.xpack.security.authc.service.CachingServiceAccountTokenStore
authenticate, getSettings, getThreadPool, invalidate, invalidateAll
-
Constructor Details
-
FileServiceAccountTokenStore
public FileServiceAccountTokenStore(org.elasticsearch.env.Environment env, org.elasticsearch.watcher.ResourceWatcherService resourceWatcherService, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.cluster.service.ClusterService clusterService, CacheInvalidatorRegistry cacheInvalidatorRegistry)
-
-
Method Details
-
doAuthenticate
public void doAuthenticate(ServiceAccountToken token, org.elasticsearch.action.ActionListener<ServiceAccountTokenStore.StoreAuthenticationResult> listener) -
getTokenSource
public org.elasticsearch.xpack.core.security.action.service.TokenInfo.TokenSource getTokenSource() -
findTokensFor
public List<org.elasticsearch.xpack.core.security.action.service.TokenInfo> findTokensFor(ServiceAccount.ServiceAccountId accountId) -
addListener
-
shouldClearOnSecurityIndexStateChange
public boolean shouldClearOnSecurityIndexStateChange()
-