com.netease.cloud.services.nos.Headers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nos-sdk-java-publiccloud Show documentation
Show all versions of nos-sdk-java-publiccloud Show documentation
nos java sdk to the Central Repository
The newest version!
package com.netease.cloud.services.nos;
/**
* Common NOS HTTP header values used throughout the NOS Java client.
*/
public interface Headers {
/*
* Standard HTTP Headers
*/
public static final String CONTENT_LENGTH = "Content-Length";
public static final String CONTENT_MD5 = "Content-MD5";
public static final String CONTENT_TYPE = "Content-Type";
public static final String DATE = "Date";
public static final String ETAG = "ETag";
public static final String LAST_MODIFIED = "Last-Modified";
/*
* HTTP Headers
*/
/** Prefix for general headers: x-nos- */
public static final String NOS_PREFIX = "x-nos-";
/** NOS's canned ACL header: x-nos-acl */
public static final String NOS_CANNED_ACL = "x-nos-acl";
/** NOS's alternative date header: x-nos-date */
public static final String NOS_ALTERNATE_DATE = "x-nos-date";
/** Prefix for NOS user metadata: x-nos-meta- */
public static final String NOS_USER_METADATA_PREFIX = "x-nos-meta-";
/** NOS's version ID header */
public static final String NOS_VERSION_ID = "x-nos-version-id";
/** NOS response header for a request's request ID */
public static final String REQUEST_ID = "x-nos-request-id";
/** DevPay token header */
public static final String SECURITY_TOKEN = "x-nos-security-token";
/** Header describing what class of storage a user wants */
public static final String STORAGE_CLASS = "x-nos-storage-class";
/** Header for optional object expiration */
public static final String EXPIRATION = "x-nos-expiration";
/** Range header for the get object request */
public static final String RANGE = "Range";
/** Modified since constraint header for the get object request */
public static final String GET_OBJECT_IF_MODIFIED_SINCE = "If-Modified-Since";
public static final String X_NOS_OBJECT_MD5 = "x-nos-object-md5";
public static final String X_NOS_OBJECT_NAME = "x-nos-object-name";
public static final String X_NOS_CALLBACK_RET = "x-nos-callback-ret";
/** Encrypted symmetric key header that is used in the envelope encryption mechanism */
public static final String CRYPTO_KEY = "x-nos-meta-key";
/**
* Encrypted symmetric key header that is used in the Authenticated
* Encryption (AE) cryptographic module. Older versions of NOS encryption
* client with encryption-only capability would not be able to recognize
* this AE key, and therefore will be prevented from mistakenly decrypting
* ciphertext in AE format.
*/
public static final String CRYPTO_KEY_V2 = "x-nos-meta-key-v2";
/** Initialization vector (IV) header that is used in the symmetric and envelope encryption mechanisms */
public static final String CRYPTO_IV = "x-nos-meta-iv";
/**
* Key wrapping algorithm such as "AESWrap" and "RSA/ECB/OAEPWithSHA-256AndMGF1Padding".
*/
public static final String CRYPTO_KEYWRAP_ALGORITHM = "x-nos-meta-wrap-alg";
/**
* Content encryption algorithm, such as "AES/GCM/NoPadding".
*/
public static final String CRYPTO_CEK_ALGORITHM = "x-nos-meta-cek-alg";
/**
* Tag length applicable to authenticated encrypt/decryption.
*/
public static final String CRYPTO_TAG_LENGTH = "x-nos-meta-tag-len";
/** JSON-encoded description of encryption materials used during encryption */
public static final String MATERIALS_DESCRIPTION = "x-nos-meta-matdesc";
/** Header for the original, unencrypted size of an encrypted object */
public static final String UNENCRYPTED_CONTENT_LENGTH = "x-nos-meta-unencrypted-content-length";
/** Header for the optional original unencrypted Content MD5 of an encrypted object */
public static final String UNENCRYPTED_CONTENT_MD5 = "x-nos-meta-unencrypted-content-md5";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy