Interface CipherData
public interface CipherData
CipherData provides encrypted data. It must either contain the
encrypted octet sequence as base64 encoded text of the
CipherValue element, or provide a reference to an external
location containing the encrypted octet sequence via the
CipherReference element.
The schema definition is as follows:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intREFERENCE_TYPE ASNstatic final intVALUE_TYPE ASN -
Method Summary
Modifier and TypeMethodDescriptionReturns a reference to an external location containing the encrypted octet sequence (bytearray).Returns the cipher value as a base64 encodedbytearray.intReturns the type of encrypted data contained in theCipherData.voidsetCipherReference(CipherReference reference) Sets theCipherData's reference.voidsetCipherValue(CipherValue value) Sets theCipherData's value.
-
Field Details
-
VALUE_TYPE
static final int VALUE_TYPEVALUE_TYPE ASN- See Also:
-
REFERENCE_TYPE
static final int REFERENCE_TYPEREFERENCE_TYPE ASN- See Also:
-
-
Method Details
-
getDataType
int getDataType()Returns the type of encrypted data contained in theCipherData.- Returns:
VALUE_TYPEif the encrypted data is contained asCipherValueorREFERENCE_TYPEif the encrypted data is contained asCipherReference.
-
getCipherValue
CipherValue getCipherValue()Returns the cipher value as a base64 encodedbytearray.- Returns:
- the
CipherData's value.
-
setCipherValue
Sets theCipherData's value.- Parameters:
value- the value of theCipherData.- Throws:
XMLEncryptionException
-
getCipherReference
CipherReference getCipherReference()Returns a reference to an external location containing the encrypted octet sequence (bytearray).- Returns:
- the reference to an external location containing the encrypted octet sequence.
-
setCipherReference
Sets theCipherData's reference.- Parameters:
reference- an external location containing the encrypted octet sequence.- Throws:
XMLEncryptionException
-