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, storegetBlobEncoder, retrieve, retrieveWithMetadataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitretrieve, retrieveWithMetadatapublic 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 AbstractKeyStorageprotected InputStream getContentStream(String path) throws IOException
getContentStream in class AbstractKeyStorageIOExceptionprotected Key getWrapperKey(List<KeyDescriptor> descriptors) throws KeyUnwrapException
getWrapperKey in class AbstractKeyStorageKeyUnwrapExceptionprotected KeyDescriptor getSubjectKey(List<KeyDescriptor> descriptors) throws KeyUnwrapException
getSubjectKey in class AbstractKeyStorageKeyUnwrapExceptionprotected WrapperKeyResponse nextWrapperKey() throws KeyWrapException
nextWrapperKey in class AbstractMutableKeyStorageKeyWrapExceptionprotected void storeContent(List<Blob> blobs, String path) throws IOException
storeContent in class AbstractMutableKeyStorageIOExceptionCopyright © 2019. All rights reserved.