public class MetaStore extends ProviderStore
| Constructor and Description |
|---|
MetaStore(com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
String tableName,
DynamoDBEncryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
static com.amazonaws.services.dynamodbv2.model.CreateTableResult |
createTable(com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
String tableName,
com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput provisionedThroughput)
Creates a DynamoDB Table with the correct properties to be used with a ProviderStore.
|
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,
long version)
Returns the provider with the specified name and version.
|
long |
getVersionFromMaterialDescription(Map<String,String> description)
Extracts the material version from
description. |
getProvider, newProviderpublic MetaStore(com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
String tableName,
DynamoDBEncryptor encryptor)
public EncryptionMaterialsProvider getProvider(String materialName, long version)
ProviderStoregetProvider in class ProviderStorepublic EncryptionMaterialsProvider getOrCreate(String materialName, long nextId)
ProviderStoregetOrCreate in class ProviderStorepublic long getMaxVersion(String materialName)
ProviderStorematerialName. If there are no
versions, returns -1.getMaxVersion in class ProviderStorepublic long getVersionFromMaterialDescription(Map<String,String> description)
ProviderStoredescription.getVersionFromMaterialDescription in class ProviderStorepublic static com.amazonaws.services.dynamodbv2.model.CreateTableResult createTable(com.amazonaws.services.dynamodbv2.AmazonDynamoDB ddb,
String tableName,
com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput provisionedThroughput)
Copyright © 2018. All rights reserved.