|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
static int |
REFERENCE_TYPE
REFERENCE_TYPE ASN |
static int |
VALUE_TYPE
VALUE_TYPE ASN |
Method Summary | |
CipherReference |
getCipherReference()
Returns a reference to an external location containing the encrypted octet sequence ( byte array). |
CipherValue |
getCipherValue()
Returns the cipher value as a base64 encoded byte array. |
int |
getDataType()
Returns the type of encrypted data contained in the CipherData . |
void |
setCipherReference(CipherReference reference)
Sets the CipherData 's reference. |
void |
setCipherValue(CipherValue value)
Sets the CipherData 's value. |
Field Detail |
public static final int VALUE_TYPE
public static final int REFERENCE_TYPE
Method Detail |
public int getDataType()
CipherData
.
VALUE_TYPE
if the encrypted data is contained as
CipherValue
or REFERENCE_TYPE
if the
encrypted data is contained as CipherReference
.public CipherValue getCipherValue()
byte
array.
CipherData
's value.public void setCipherValue(CipherValue value) throws XMLEncryptionException
CipherData
's value.
value
- the value of the CipherData
.
XMLEncryptionException
public CipherReference getCipherReference()
byte
array).
public void setCipherReference(CipherReference reference) throws XMLEncryptionException
CipherData
's reference.
reference
- an external location containing the enctrypted octet
sequence.
XMLEncryptionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |