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 CipherReferenceprivate intprivate CipherValueprivate static final Stringprivate static final StringFields inherited from interface CipherData
REFERENCE_TYPE, VALUE_TYPE -
Constructor Summary
Constructors -
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.(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 encodedbytearray.- Specified by:
getCipherValuein interfaceCipherData- Returns:
- the
CipherData's value.
-
setCipherValue
Sets theCipherData's value.- Specified by:
setCipherValuein interfaceCipherData- Parameters:
value- the value of theCipherData.- Throws:
XMLEncryptionException
-
getCipherReference
Returns a reference to an external location containing the encrypted octet sequence (bytearray).- Specified by:
getCipherReferencein interfaceCipherData- Returns:
- the reference to an external location containing the encrypted octet sequence.
-
setCipherReference
Sets theCipherData's reference.- Specified by:
setCipherReferencein 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:
getDataTypein interfaceCipherData- Returns:
VALUE_TYPEif the encrypted data is contained asCipherValueorREFERENCE_TYPEif the encrypted data is contained asCipherReference.
-
toElement
Element toElement()
-