Class XMLCipher.Factory.CipherDataImpl
java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.CipherDataImpl
- All Implemented Interfaces:
CipherData
- Enclosing class:
XMLCipher.Factory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CipherReference
private int
private CipherValue
private static final String
private static final String
Fields inherited from interface org.apache.xml.security.encryption.CipherData
REFERENCE_TYPE, VALUE_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a reference to an external location containing the encrypted octet sequence (byte
array).Returns the cipher value as a base64 encodedbyte
array.int
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) Element
-
Field Details
-
valueMessage
- See Also:
-
referenceMessage
- See Also:
-
cipherValue
-
cipherReference
-
cipherType
private int cipherType
-
-
Constructor Details
-
CipherDataImpl
public CipherDataImpl(int type) - Parameters:
type
-
-
-
Method Details
-
getCipherValue
Returns the cipher value as a base64 encodedbyte
array.- Specified by:
getCipherValue
in interfaceCipherData
- Returns:
- the
CipherData
's value.
-
setCipherValue
Sets theCipherData
's value.- Specified by:
setCipherValue
in interfaceCipherData
- Parameters:
value
- the value of theCipherData
.- Throws:
XMLEncryptionException
-
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
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
Element toElement()
-