Class XMLCipher.Factory.CipherDataImpl
- java.lang.Object
-
- org.apache.xml.security.encryption.XMLCipher.Factory.CipherDataImpl
-
- All Implemented Interfaces:
CipherData
- Enclosing class:
- XMLCipher.Factory
private class XMLCipher.Factory.CipherDataImpl extends java.lang.Object implements CipherData
-
-
Field Summary
Fields Modifier and Type Field Description private CipherReference
cipherReference
private int
cipherType
private CipherValue
cipherValue
private static java.lang.String
referenceMessage
private static java.lang.String
valueMessage
-
Fields inherited from interface org.apache.xml.security.encryption.CipherData
REFERENCE_TYPE, VALUE_TYPE
-
-
Constructor Summary
Constructors Constructor Description CipherDataImpl(int type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 encodedbyte
array.int
getDataType()
Returns the type of encrypted data contained in theCipherData
.void
setCipherReference(CipherReference reference)
Sets theCipherData
's reference.void
setCipherValue(CipherValue value)
Sets theCipherData
's value.(package private) org.w3c.dom.Element
toElement()
-
-
-
Field Detail
-
valueMessage
private static final java.lang.String valueMessage
- See Also:
- Constant Field Values
-
referenceMessage
private static final java.lang.String referenceMessage
- See Also:
- Constant Field Values
-
cipherValue
private CipherValue cipherValue
-
cipherReference
private CipherReference cipherReference
-
cipherType
private int cipherType
-
-
Method Detail
-
getCipherValue
public CipherValue getCipherValue()
Returns the cipher value as a base64 encodedbyte
array.- Specified by:
getCipherValue
in interfaceCipherData
- Returns:
- the
CipherData
's value.
-
setCipherValue
public void setCipherValue(CipherValue value) throws XMLEncryptionException
Sets theCipherData
's value.- Specified by:
setCipherValue
in interfaceCipherData
- Parameters:
value
- the value of theCipherData
.- Throws:
XMLEncryptionException
-
getCipherReference
public CipherReference getCipherReference()
Returns a reference to an external location containing the encrypted octet sequence (byte
array).- Specified by:
getCipherReference
in interfaceCipherData
- Returns:
- the reference to an external location containing the encrypted octet sequence.
-
setCipherReference
public void setCipherReference(CipherReference reference) throws XMLEncryptionException
Sets theCipherData
's reference.- Specified by:
setCipherReference
in interfaceCipherData
- Parameters:
reference
- an external location containing the encrypted octet sequence.- Throws:
XMLEncryptionException
-
getDataType
public int getDataType()
Returns the type of encrypted data contained in theCipherData
.- Specified by:
getDataType
in interfaceCipherData
- Returns:
VALUE_TYPE
if the encrypted data is contained asCipherValue
orREFERENCE_TYPE
if the encrypted data is contained asCipherReference
.
-
toElement
org.w3c.dom.Element toElement()
-
-