public abstract class ProviderStore extends Object
EncryptionMaterialsProviders
backed by some form of persistent storage.| Constructor and Description |
|---|
ProviderStore() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getMaxVersion(String materialName)
Returns the maximum version number associated with
materialName. |
EncryptionMaterialsProvider |
getOrCreate(String materialName,
long nextId)
Returns the provider with the specified name and version and creates it if it doesn't exist.
|
EncryptionMaterialsProvider |
getProvider(String materialName)
Returns the most recent provider with the specified name.
|
abstract EncryptionMaterialsProvider |
getProvider(String materialName,
long version)
Returns the provider with the specified name and version.
|
abstract long |
getVersionFromMaterialDescription(Map<String,String> description)
Extracts the material version from
description. |
EncryptionMaterialsProvider |
newProvider(String materialName)
Creates a new provider with a version one greater than the current max version.
|
public EncryptionMaterialsProvider getProvider(String materialName)
public abstract EncryptionMaterialsProvider getProvider(String materialName, long version)
IndexOutOfBoundsException - if version is not a valid versionpublic EncryptionMaterialsProvider newProvider(String materialName)
public EncryptionMaterialsProvider getOrCreate(String materialName, long nextId)
UnsupportedOperationException - if a new provider cannot be createdpublic abstract long getMaxVersion(String materialName)
materialName. If there are no
versions, returns -1.Copyright © 2021. All rights reserved.