public final class ContentIntegrityOption
extends java.lang.Object
implements java.io.Serializable
StorageArea
.
Content integrity options apply only to an advanced storage area.
Modifier and Type | Field and Description |
---|---|
static ContentIntegrityOption |
AUTO_REPAIR_ON_RETRIEVAL
Advanced storage area only: If
VALIDATE_ON_RETRIEVAL is enabled and content retrieval detects invalid content
(missing, invalid size, invalid signature), initiate auto repair of the content with the replication sweep. |
static int |
AUTO_REPAIR_ON_RETRIEVAL_AS_INT
An
int value associated with the AUTO_REPAIR_ON_RETRIEVAL instance of this class. |
static ContentIntegrityOption |
AUTO_REPAIR_ON_VALIDATE_CONTENT
Advanced storage area only: If the validateContent API on
StorageArea detects invalid content
(missing, invalid size, invalid signature), initiate auto repair of the content with the replication sweep. |
static int |
AUTO_REPAIR_ON_VALIDATE_CONTENT_AS_INT
An
int value associated with the AUTO_REPAIR_ON_VALIDATE_CONTENT instance of this class. |
static ContentIntegrityOption |
COMPUTE_CONTENT_SIGNATURE
If specified, the content signature is always computed during content upload.
|
static int |
COMPUTE_CONTENT_SIGNATURE_AS_INT
An
int value associated with the COMPUTE_CONTENT_SIGNATURE instance of this class. |
static ContentIntegrityOption |
VALIDATE_ON_CREATION
Validates existence and size after content upload.
|
static int |
VALIDATE_ON_CREATION_AS_INT
An
int value associated with the VALIDATE_ON_CREATION instance of this class. |
static ContentIntegrityOption |
VALIDATE_ON_RETRIEVAL
Validates existence and size at the beginning of content retrieval (prior to returning content to the end user).
|
static int |
VALIDATE_ON_RETRIEVAL_AS_INT
An
int value associated with the VALIDATE_ON_RETRIEVAL instance of this class. |
static ContentIntegrityOption |
VERIFY_SIGNATURE_ON_CREATION
If
VALIDATE_ON_CREATION is specified and the content signature has been computed,
verifies the signature after content upload. |
static int |
VERIFY_SIGNATURE_ON_CREATION_AS_INT
An
int value associated with the VERIFY_SIGNATURE_ON_CREATION instance of this class. |
static ContentIntegrityOption |
VERIFY_SIGNATURE_ON_RETRIEVAL
If
VALIDATE_ON_RETRIEVAL is specified and the content signature has been computed,
verifies the signature prior to returning content to the end user. |
static int |
VERIFY_SIGNATURE_ON_RETRIEVAL_AS_INT
An
int value associated with the VERIFY_SIGNATURE_ON_RETRIEVAL instance of this class. |
static ContentIntegrityOption |
VERIFY_SIGNATURE_ON_VALIDATE_CONTENT
If the content signature has been computed, verifies the signature within the validateContent API on
StorageArea . |
static int |
VERIFY_SIGNATURE_ON_VALIDATE_CONTENT_AS_INT
An
int value associated with the VERIFY_SIGNATURE_ON_VALIDATE_CONTENT instance of this class. |
Modifier and Type | Method and Description |
---|---|
static ContentIntegrityOption |
getInstanceFromInt(int value)
Returns an instance of this class using its associated integer value.
|
int |
getValue()
Returns the internal integer value associated with a specific instance of this class.
|
java.lang.String |
toString()
Returns a
String representation of this enumeration instance. |
public static final int VALIDATE_ON_RETRIEVAL_AS_INT
int
value associated with the VALIDATE_ON_RETRIEVAL instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption VALIDATE_ON_RETRIEVAL
public static final int AUTO_REPAIR_ON_VALIDATE_CONTENT_AS_INT
int
value associated with the AUTO_REPAIR_ON_VALIDATE_CONTENT instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption AUTO_REPAIR_ON_VALIDATE_CONTENT
StorageArea
detects invalid content
(missing, invalid size, invalid signature), initiate auto repair of the content with the replication sweep.
Note that signature validation is only applied if the signature has been computed and the
VERIFY_SIGNATURE_ON_VALIDATE_CONTENT
option is specified.public static final int VALIDATE_ON_CREATION_AS_INT
int
value associated with the VALIDATE_ON_CREATION instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption VALIDATE_ON_CREATION
public static final int COMPUTE_CONTENT_SIGNATURE_AS_INT
int
value associated with the COMPUTE_CONTENT_SIGNATURE instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption COMPUTE_CONTENT_SIGNATURE
public static final int VERIFY_SIGNATURE_ON_RETRIEVAL_AS_INT
int
value associated with the VERIFY_SIGNATURE_ON_RETRIEVAL instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption VERIFY_SIGNATURE_ON_RETRIEVAL
VALIDATE_ON_RETRIEVAL
is specified and the content signature has been computed,
verifies the signature prior to returning content to the end user. The content signature is
computed if either content de-duplication is enabled on StorageArea
,
or if the COMPUTE_CONTENT_SIGNATURE
option is enabled.
Advanced storage area only: Attempts to retrieve from another replica if the content is determined to be invalid.public static final int VERIFY_SIGNATURE_ON_VALIDATE_CONTENT_AS_INT
int
value associated with the VERIFY_SIGNATURE_ON_VALIDATE_CONTENT instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption VERIFY_SIGNATURE_ON_VALIDATE_CONTENT
StorageArea
.
The content signature is computed if either content de-duplication is enabled on StorageArea
,
or if the COMPUTE_CONTENT_SIGNATURE
option is enabled.public static final int AUTO_REPAIR_ON_RETRIEVAL_AS_INT
int
value associated with the AUTO_REPAIR_ON_RETRIEVAL instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption AUTO_REPAIR_ON_RETRIEVAL
VALIDATE_ON_RETRIEVAL
is enabled and content retrieval detects invalid content
(missing, invalid size, invalid signature), initiate auto repair of the content with the replication sweep.
Note that signature validation is only applied if the signature has been computed and the
VERIFY_SIGNATURE_ON_VALIDATE_CONTENT
option is specified.public static final int VERIFY_SIGNATURE_ON_CREATION_AS_INT
int
value associated with the VERIFY_SIGNATURE_ON_CREATION instance of this class. Consider using the static instances of this class instead of the associated int values. The int values risk binary incompatibility (but not source incompatibility) from release to release.public static final ContentIntegrityOption VERIFY_SIGNATURE_ON_CREATION
VALIDATE_ON_CREATION
is specified and the content signature has been computed,
verifies the signature after content upload. The content signature is computed if either
content de-duplication is enabled on StorageArea
, or if the COMPUTE_CONTENT_SIGNATURE
option is enabled.
Advanced storage area only: Applies the same logic to content replication.public int getValue()
getInstanceFromInt(int)
public java.lang.String toString()
String
representation of this enumeration instance.toString
in class java.lang.Object
public static ContentIntegrityOption getInstanceFromInt(int value)
value
- The integer value. (See the *_AS_INT fields.)EngineRuntimeException
- If an enumeration instance with the given
ordinal value does not exist.getValue()
© Copyright IBM Corporation 2006, 2015. All rights reserved.