public class AwsKeyStorage extends AbstractMutableKeyStorage
MutableKeyStorage
implementation that uses
the AWS KMS service as the source for wrapper keys and stores wrapped,
encoded keys in an S3 bucket.Constructor and Description |
---|
AwsKeyStorage(BlobEncoder blobEncoder,
KeyWrapOperator keyWrapOperator,
KeyEncoder keyEncoder,
MetadataWrapOperator metadataWrapOperator,
MetadataEncoder metadataEncoder,
MetadataRecognizer metadataRecognizer,
MasterKeyService masterKeyService,
StorageService storageService) |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getContentStream(String path) |
protected KeyDescriptor |
getSubjectKey(List<KeyDescriptor> descriptors) |
protected Key |
getWrapperKey(List<KeyDescriptor> descriptors) |
protected String |
idToPath(String id,
String suffix) |
protected WrapperKeyResponse |
nextWrapperKey() |
protected void |
storeContent(List<Blob> blobs,
String path) |
store, store
getBlobEncoder, retrieve, retrieveWithMetadata
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
retrieve, retrieveWithMetadata
public AwsKeyStorage(BlobEncoder blobEncoder, KeyWrapOperator keyWrapOperator, KeyEncoder keyEncoder, MetadataWrapOperator metadataWrapOperator, MetadataEncoder metadataEncoder, MetadataRecognizer metadataRecognizer, MasterKeyService masterKeyService, StorageService storageService)
protected String idToPath(String id, String suffix)
idToPath
in class AbstractKeyStorage
protected InputStream getContentStream(String path) throws IOException
getContentStream
in class AbstractKeyStorage
IOException
protected Key getWrapperKey(List<KeyDescriptor> descriptors) throws KeyUnwrapException
getWrapperKey
in class AbstractKeyStorage
KeyUnwrapException
protected KeyDescriptor getSubjectKey(List<KeyDescriptor> descriptors) throws KeyUnwrapException
getSubjectKey
in class AbstractKeyStorage
KeyUnwrapException
protected WrapperKeyResponse nextWrapperKey() throws KeyWrapException
nextWrapperKey
in class AbstractMutableKeyStorage
KeyWrapException
protected void storeContent(List<Blob> blobs, String path) throws IOException
storeContent
in class AbstractMutableKeyStorage
IOException
Copyright © 2019. All rights reserved.