public class CoordinatorPollingBasicAuthenticatorCacheManager extends Object implements BasicAuthenticatorCacheManager
| Constructor and Description | 
|---|
CoordinatorPollingBasicAuthenticatorCacheManager(com.google.inject.Injector injector,
                                                BasicAuthCommonCacheConfig commonCacheConfig,
                                                com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                                DruidLeaderClient druidLeaderClient)  | 
| Modifier and Type | Method and Description | 
|---|---|
Map<String,BasicAuthenticatorUser> | 
getUserMap(String authenticatorPrefix)
Return the cache manager's local view of the user map for the authenticator named `authenticatorPrefix`. 
 | 
void | 
handleAuthenticatorUpdate(String authenticatorPrefix,
                         byte[] serializedUserMap)
Update this cache manager's local state with fresh information pushed by the coordinator. 
 | 
void | 
start()  | 
void | 
stop()  | 
@Inject
public CoordinatorPollingBasicAuthenticatorCacheManager(com.google.inject.Injector injector,
                                                                BasicAuthCommonCacheConfig commonCacheConfig,
                                                                com.fasterxml.jackson.databind.ObjectMapper objectMapper,
                                                                DruidLeaderClient druidLeaderClient)
public void start()
public void stop()
public void handleAuthenticatorUpdate(String authenticatorPrefix, byte[] serializedUserMap)
BasicAuthenticatorCacheManagerhandleAuthenticatorUpdate in interface BasicAuthenticatorCacheManagerauthenticatorPrefix - The name of the authenticator this update applies to.serializedUserMap - The updated, serialized user mappublic Map<String,BasicAuthenticatorUser> getUserMap(String authenticatorPrefix)
BasicAuthenticatorCacheManagergetUserMap in interface BasicAuthenticatorCacheManagerauthenticatorPrefix - The name of the authenticatorCopyright © 2011–2018. All rights reserved.