All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
protected OSSObject |
adjustToDesiredRange(OSSObject OSSobject,
long[] range) |
protected ContentCryptoMaterial |
buildContentCryptoMaterials() |
protected ContentCryptoMaterial |
createContentMaterialFromMetadata(ObjectMetadata meta) |
protected OSSObject |
decipherWithMetadata(GetObjectRequest req,
long[] desiredRange,
long[] cryptoRange,
OSSObject retrieved) |
protected SecretKey |
generateCEK() |
protected static Map<String,String> |
getDescFromJsonString(String jsonString) |
OSSObject |
getObjectSecurely(GetObjectRequest req)
Gets the object in OSS, if it was an encrypted object then decrypt it and
return the result, otherwise return the object directly.
|
ObjectMetadata |
getObjectSecurely(GetObjectRequest getObjectRequest,
File file)
Gets the object in OSS and write it in a file, if it was an encrypted object
then decrypt it, otherwise wirte the object directly.
|
static boolean |
hasEncryptionInfo(ObjectMetadata metadata)
Checks there an encryption info in the metadata.
|
InitiateMultipartUploadResult |
initiateMultipartUploadSecurely(InitiateMultipartUploadRequest req,
MultipartUploadCryptoContext context)
Initiates the multipart upload request, and bulid the crypto context.
|
protected long |
plaintextLength(PutObjectRequest request,
ObjectMetadata metadata) |
PutObjectResult |
putObjectSecurely(PutObjectRequest req)
Puts the object with data encrypted.
|
protected void |
safeCloseSource(Closeable is) |
protected void |
setUserAgent(WebServiceRequest req,
String userAgent) |
protected ObjectMetadata |
updateMetadataWithContentCryptoMaterial(ObjectMetadata metadata,
File file,
ContentCryptoMaterial contentCryptoMaterial) |
protected ObjectMetadata |
updateMetadataWithUploadContext(ObjectMetadata metadata,
MultipartUploadCryptoContext context) |
UploadPartResult |
uploadPartSecurely(UploadPartRequest req,
MultipartUploadCryptoContext context)
Uploads the part secured.
|
protected PutObjectRequest |
wrapPutRequestWithCipher(PutObjectRequest request,
ContentCryptoMaterial cekMaterial) |