FileDocCategorySizeDatePackage
CipherData.javaAPI DocJava SE 6 API2959Tue Jun 10 00:23:00 BST 2008com.sun.org.apache.xml.internal.security.encryption

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:

<element name='CipherData' type='xenc:CipherDataType'/> <complexType name='CipherDataType'> <choice> <element name='CipherValue' type='base64Binary'/> <element ref='xenc:CipherReference'/> </choice> </complexType>
author
Axl Mattheus

Fields Summary
public static final int
VALUE_TYPE
VALUE_TYPE ASN
public static final int
REFERENCE_TYPE
REFERENCE_TYPE ASN
Constructors Summary
Methods Summary
public CipherReferencegetCipherReference()
Returns a reference to an external location containing the encrypted octet sequence (byte array).

return
the reference to an external location containing the enctrypted octet sequence.

public CipherValuegetCipherValue()
Returns the cipher value as a base64 encoded byte array.

return
the CipherData's value.

public intgetDataType()
Returns the type of encrypted data contained in the CipherData.

return
VALUE_TYPE if the encrypted data is contained as CipherValue or REFERENCE_TYPE if the encrypted data is contained as CipherReference.

public voidsetCipherReference(CipherReference reference)
Sets the CipherData's reference.

param
reference an external location containing the enctrypted octet sequence.
throws
XMLEncryptionException

public voidsetCipherValue(CipherValue value)
Sets the CipherData's value.

param
value the value of the CipherData.
throws
XMLEncryptionException