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 CipherReferencecipherReferenceprivate intcipherTypeprivate CipherValuecipherValueprivate static java.lang.StringreferenceMessageprivate static java.lang.StringvalueMessage-
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 CipherReferencegetCipherReference()Returns a reference to an external location containing the encrypted octet sequence (bytearray).CipherValuegetCipherValue()Returns the cipher value as a base64 encodedbytearray.intgetDataType()Returns the type of encrypted data contained in theCipherData.voidsetCipherReference(CipherReference reference)Sets theCipherData's reference.voidsetCipherValue(CipherValue value)Sets theCipherData's value.(package private) org.w3c.dom.ElementtoElement()
-
-
-
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 encodedbytearray.- Specified by:
getCipherValuein interfaceCipherData- Returns:
- the
CipherData's value.
-
setCipherValue
public void setCipherValue(CipherValue value) throws XMLEncryptionException
Sets theCipherData's value.- Specified by:
setCipherValuein 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 (bytearray).- Specified by:
getCipherReferencein 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:
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
org.w3c.dom.Element toElement()
-
-