public class MetadataStoragePollingBasicAuthenticatorCacheManager extends Object implements BasicAuthenticatorCacheManager
| Constructor and Description |
|---|
MetadataStoragePollingBasicAuthenticatorCacheManager(BasicAuthenticatorMetadataStorageUpdater storageUpdater) |
| 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.
|
@Inject public MetadataStoragePollingBasicAuthenticatorCacheManager(BasicAuthenticatorMetadataStorageUpdater storageUpdater)
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.