Package | Description |
---|---|
com.qcloud.cos.internal.crypto | |
com.qcloud.cos.model |
Modifier and Type | Method and Description |
---|---|
protected <R extends AbstractPutObjectRequest> |
COSCryptoModuleBase.wrapWithCipher(R request,
com.qcloud.cos.internal.crypto.ContentCryptoMaterial cekMaterial)
Returns the given
PutObjectRequest but has the content as input stream wrapped
with a cipher, and configured with some meta data and user metadata. |
Modifier and Type | Method and Description |
---|---|
protected long |
COSCryptoModuleBase.plaintextLength(AbstractPutObjectRequest request,
ObjectMetadata metadata)
Returns the plaintext length from the request and metadata; or -1 if unknown.
|
Modifier and Type | Class and Description |
---|---|
class |
AppendObjectRequest |
class |
EncryptedPutObjectRequest |
class |
PutObjectRequest
Uploads a new object to the specified Qcloud COS bucket.
|
Modifier and Type | Method and Description |
---|---|
protected <T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.copyPutObjectBaseTo(T target) |
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withAccessControlList(AccessControlList accessControlList)
Sets the optional access control list for the new object.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withBucketName(String bucketName)
Sets the name of the bucket where this request will upload a new object to.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withCannedAcl(CannedAccessControlList cannedAcl)
Sets the optional pre-configured access control policy to use for the new object.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withFile(File file)
Sets the file containing the data to be uploaded to Qcloud COS.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withInputStream(InputStream inputStream)
Sets the input stream containing the data to be uploaded to Qcloud COS.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withKey(String key)
Sets the key under which to store the new object.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withMetadata(ObjectMetadata metadata)
Sets the optional metadata instructing Qcloud COS how to handle the uploaded data (e.g.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withRedirectLocation(String redirectLocation)
Sets the optional redirect location for the new object.Returns this
AbstractPutObjectRequest , enabling additional method calls to be chained together. |
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withSSECOSKeyManagementParams(SSECOSKeyManagementParams sseCOSKeyManagementParams)
Sets the COS Key Management System parameters used to encrypt the object on server side.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withSSECustomerKey(SSECustomerKey sseKey)
Sets the optional customer-provided server-side encryption key to use to encrypt the uploaded
object, and returns the updated request object so that additional method calls can be chained
together.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withStorageClass(StorageClass storageClass)
Sets the optional Qcloud COS storage class to use when storing the new object.
|
<T extends AbstractPutObjectRequest> |
AbstractPutObjectRequest.withStorageClass(String storageClass)
Sets the optional Qcloud COS storage class to use when storing the new object.
|
Modifier and Type | Method and Description |
---|---|
AbstractPutObjectRequest |
AbstractPutObjectRequest.clone() |
Copyright © 2023. All rights reserved.