Class ApiKeyService.CachedApiKeyDoc
java.lang.Object
org.elasticsearch.xpack.security.authc.ApiKeyService.CachedApiKeyDoc
- Enclosing class:
- ApiKeyService
A cached version of the
ApiKeyService.ApiKeyDoc. The main difference is that the role descriptors
are replaced by their hashes. The actual values are stored in a separate role descriptor cache,
so that duplicate role descriptors are cached only once (and therefore consume less memory).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoApiKeyDoc(org.elasticsearch.common.bytes.BytesReference roleDescriptorsBytes, org.elasticsearch.common.bytes.BytesReference limitedByRoleDescriptorsBytes)
-
Constructor Details
-
CachedApiKeyDoc
-
-
Method Details
-
toApiKeyDoc
public ApiKeyService.ApiKeyDoc toApiKeyDoc(org.elasticsearch.common.bytes.BytesReference roleDescriptorsBytes, org.elasticsearch.common.bytes.BytesReference limitedByRoleDescriptorsBytes)
-