WRAPPED - backing implementation of a AbstractMultipartUploadpublic class EncryptedMultipartUploaSerializationHelper<WRAPPED extends AbstractMultipartUpload> extends Object
EncryptedMultipartUpload
instances.| Constructor and Description |
|---|
EncryptedMultipartUploaSerializationHelper(com.esotericsoftware.kryo.Kryo kryo,
SecretKey secretKey,
SupportedCipherDetails cipherDetails,
Class<WRAPPED> wrappedMultipartClass)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
EncryptedMultipartUpload<WRAPPED> |
deserialize(byte[] serializedData)
Decrypts and deserializes the specified binary blob.
|
byte[] |
serialize(EncryptedMultipartUpload<WRAPPED> upload)
Serializes and encrypts the specified upload object.
|
public EncryptedMultipartUploaSerializationHelper(com.esotericsoftware.kryo.Kryo kryo,
SecretKey secretKey,
SupportedCipherDetails cipherDetails,
Class<WRAPPED> wrappedMultipartClass)
kryo - Kryo serializer instancesecretKey - secret key used by MPUcipherDetails - cipher / mode properties objectwrappedMultipartClass - multipart class that encrypting mpu class is wrappingpublic byte[] serialize(EncryptedMultipartUpload<WRAPPED> upload)
upload - object to serialize and encryptpublic EncryptedMultipartUpload<WRAPPED> deserialize(byte[] serializedData)
serializedData - data to decrypt and deserializeCopyright © 2012–2017 Joyent. All rights reserved.